Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For each line in string variable
Message
 
To
04/05/2006 16:29:03
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01119378
Message ID:
01119379
Views:
15
This message has been marked as the solution to the initial question of the thread.
>Hello,
>I have a string variable complete with line breaks and carriage returns. Is there a way I can create a loop for each line in that variable? I need to offset each line by 1 space, and I think this loop is the only way of doing it.
>
>Thanks in advance,
>MAC

?
If you want just to offset try this:
#define CRLF CHR(13)+CHR(10)
lcString = [ ] + STRTRAN(lcString,CRLF,CRLF+[ ])
Did the ALINES() function exists in VFP7? Never used it and I am not sure.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform