an alternative approach would be to write your string once-off to a
sequential file, then do READBLK's of one char in a loop...

READBLK's work at an amazing rate

-----Original Message-----
From: Nick Cipollina [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 15 September, 2004 2:32 PM
To: [EMAIL PROTECTED]
Subject: [U2] [UV] Processing a string

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:



STR.VAR = "Some really really long string that has lots and lots of
characters for test processing."

MAX.STR = LEN(STR.VAR)

FOR X = 1 TO MAX.STR

            VAR = STR.VAR[X,1]

            do stuff with VAR here .....

NEXT X



Thanks in advance.



Nick Cipollina



Pick Programmer

ACS - Heritage Information Systems, Inc.

2810 North Parham Road, Suite 210

Richmond, VA 23294

(804)644-8707 x 314
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


<PRE>
---------------------------------------------------------
GWK BEPERK/LIMITED (REG: 1997/022252/06)
POSBUS 47 PO BOX 8730
DOUGLAS

Direkteure/Directors: NB Jacobs, FJ Lawrence, J v/d S Botes,
JH Coetzee, JGD Smit, JF Jacobs, AO M|ller, JW Smit,
JP Snyman, JG Stander, JH van Dyk(MD/BD), JG Jacobs, A M|ller, M van Zyl,
Sekr/Secr: E van Niekerk.

Hierdie e-pos is onderworpe aan 'n vrywaring beskikbaar by:
http://www.gwk.co.za/DisclaimerVrywaring.asp
This e-mail is subjected to the disclaimer that can be viewed at:
http://www.gwk.co.za/DisclaimerVrywaring.asp</PRE>
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to