SUE STONE 7.Oct.05 01:02 PM a Web browser Domino Everyplace 6.5 Windows 2000
We are upgrading from 5 to 65. While running the filter from Analyser there was a document that mentioned Len / Instr . Here is what the document said;
Because strings in LotusScript may now exceed 32000 characters, Len and Instr now return a Long value, where before they returned Integer. This may result in overflows if the function is used in a context requiring an Integer value.
Now, I would appraciate knowing if the code should change or can it stay the same? We have about 3256 places where we are using the code.
Here is the code that we are using in R5;
Function StrRightBackR4 (StringToSearch As String, SearchString As String) As String
Dim position As Integer
position% = Instr (StringToSearch, SearchString )
If position% = 0 Then
StrRightBackR4 = ""
StrRightBackR4 = Right (StringToSearch, Len (StringToSearch) - (position% + Len (SearchString)) + 1)