You could fold the string into a dynamic array and use remove:

STR.VAR= "Some really really long string that has lots and lots of
characters for test processing."
FOLDED.VAR=FOLD(STR.VAR,1); *creates dynarray of single characters

LOOP
REMOVE ACHAR FROM FOLDED.VAR SETTING MARK
UNTIL NOT(MARK) and ACHAR="" DO
 * any character processing on ACHAR
REPEAT

I'm not sure of any actual performance gain compared with simply STR.VAR[x,1] but it's at least an alternate approach.

At 08:31 AM 9/15/2004, you wrote:
What is the fastest way to process a long string byte by byte.  I want
to know if there is a faster way to do the following:
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to