Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WP7 - Character Search in String ???

0 views
Skip to first unread message

John Chatwood

unread,
Mar 31, 1998, 3:00:00 AM3/31/98
to

Hi,

Can anyone tell me how to search for non-printing characters within a
string. I need to split a field at "<TAB>" and "<CR>" characters, but
these don't seem to exist, when going through each ascii value using
getpos.

eg. String "Hello<TAB>World" - Character 6 would be "o", 7 = "W";
where is my tab ???.

Thanks in advance.

John Chatwood


Gordon McComb

unread,
Mar 31, 1998, 3:00:00 AM3/31/98
to

You want to use the CHAR string commands, not the STR commands. For
example, the following accurately paces through a string with embedded
tabs and hard returns, applying the character to the variable test:

ForNext (Count; 1; CharLen (MyString); 1)
Test=SubChar (MyString; Count; 1)
EndFor

(I don't know what "getpos" is...)

-- Gordon

0 new messages