Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract a Word
Message
 
 
To
11/07/2001 14:18:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00529297
Message ID:
00529323
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
Not all. These particular functions have been moved as of VFP 7 as GetWordCount and GetWordNum, respectively.

>Yes, this was what I was looking for. I thought the functions of foxtools had been moved to the main language; it seems these commands were not included.
>
>>>Is there a quick way to extract a "Word" from a string? I thought there were functions similar to WordCount() and WordNum(), but I can't find them.
>>>
>>>The idea is to do something like this:
>>>
>>>
>>>MyString = "Option 1;Option 2;Option3"
>>>for i = 1 to WordCount(MyString, ",")
>>>  ? WordNum(MyString, i, ",")
>>>next
>>>
>>>
>>>Regards, Hilmar.
>>
>>There is Words (numbers of words in a string) and WordNum (returns word associated with specified index) in the Foxtools library. Is this what you want?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform