Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I split strings with | in them?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00214427
Message ID:
00214447
Views:
35
>
>The screen seperation sign is |(besides the + sign). How do I go about

My suggestion would be first to store the length of the original field, and then identify the location of the first occurence of the sep sign. I think the function is atc(). The seperate the field using two substring calls, the first form position one to the position of sep sign minus one, and the second beginning with the position of the sep sign plus one to the end of field (which is determined by the calculation (original full length minus position of the sep sign plus one). Whallah, two fields!
Previous
Reply
Map
View

Click here to load this message in the networking platform