Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing Data
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00334176
Message ID:
00334181
Views:
20
>Hi All,
>
>I have a variable in a program that is being populated by a string of data. In this data there are CR/LF between the fields that I need (one field between each CR/LF). The fields are variable lengths and are not delimited. Does anyone have a suggestion on how to parse the data out from between the CR/LF's?
>
>Hope this question makes sense!
>
>Thanks
>Greg

Hi Greg,

Look at the ALINES() function. It takes either memo or character data and breaks it apart into one array element for each group of text between CHR(10)/CHR(13) combinations, ignoring the setting of MEMOWIDTH.

Be aware that ALINES() does not strip trailing blanks *by default* like the MLINE() function -- it will still do so if you pass the correct parameter.

HTH.
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform