General information
Category:
Coding, syntax & commands
>i have a string "the;agency;auditor" stored in a variable. i want to be able to print this string in 3 lines, ";" indicates that the next word is printed in the next line.
>
>the
>agency
>auditor
>
>how will i be able to do this? pls help.
Use ALINES() to break up the string. In VFP 6, you'll have to change the ";" to returns first:
cNewString = STRTRAN(cString, ";", CHR(13))
nCount = ALINES(aStrings, cNewString)
In VFP 7 and later, you can specify the separator right in ALINES():
nCount = ALINES(aStrings, cString, ";")
Tamar
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only