[Gambas-user] Re: Text Search - string/textarea Issue - 1.0.14
A Person
kztyrvlq at ...966...
Mon Mar 20 17:46:02 CET 2006
Good Day All . . .
Thanks for the replies.
Ron - Your code does not work here. Normally it should work but I am
dealing with bytes and UTF-8 -- apples and oranges. I tried this earlier
and it would not work. It does work when I substitute a normal string. I
have done for years. See the bottom of this message.
Benoit - Apples and oranges explains why the INSTR function passes the
end of text and does not raise an alarm. I had a feeling that this was
the case. Earlier I added an end of file marker such as:
sTemp = textareHelp.Text & CHR$(13) & CHR$(10)
but it did not work.
This brings me to the point of the exercise how do I:
a. Search a string made up of textarea text where a search will fail at
the last character(?) ?
or
b. Convert the textarea text into something where a search will fail at
the last character?
or
c. What function is used to search a textarea and fail at the last
character(?) ?
or
d. Or load the the original help.txt file into a string when the user
opens the help screen, search the string with INSTR and convert the
return into textarea.selection. The INSTR function will stop at the end
of the string with a little coaching. This seems a logical workaround.
Any suggestions?
Thanks.
Paul
More information about the User
mailing list