Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A tangled string
Message
 
 
To
31/12/2011 13:04:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01531969
Message ID:
01531986
Views:
55
>>>i have a text string of multiple short sentences each separated by periods stored in a variable called mesa
>>>i would like to display the string with each sentence occupying a new line
>>>if i use
>>>? mesa
>>>i get a run-on string
>>>i would like to use
>>>? subs(mesa,1,??)
>>>? subs(mesa,??+1,??) (where ?? is the location of each period)
>>>
>>>
>>>How can i locate and store each of the numerical placements of the periods to build up my substring segments
>>>or is there a more efficient way to do this.
>>>
>>>thanks
>>>k
>>
>>put into an array
>>
>>ALINES(aMesa,m.mesa,".")
>>
>
>Thank you fabio, sadly i'm not familiar enough with array to display it so could not get anywhere with this one.
>k

Come on, Karen, put forth a little effort. He gave you the actual command for creating an array. The command window is your friend -- try it out! As is the help window. The FoxPro language is a feast, but it's not clairvoyant.
Previous
Reply
Map
View

Click here to load this message in the networking platform