Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get GETWORDNUM results starting/ending position
Message
From
24/10/2001 10:46:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/10/2001 10:44:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00572607
Message ID:
00572617
Views:
47
In VFP 7, you can change the default delimiter. In VFP 6, you have to convert ";" (or whatever delimiter you choose to use) to chr(13), before applying alines().

Hilmar.

>>I´ve need a function that makes somethin like this:
>>
>>Knowing the word number (for a specific delimiter),
>>Get this words starting/ending position.
>>
>>Does this exist?
>>If not, how can I get it?
>>
>>Thanks,
>>Ibai
>
>Yes, there is a function in FoxTools. However, it has the problem of ignoring consecutive delimiters, that is, blank parameters.
>
>A string like: Par1;;Par3, where the second parameter is omitted, would give you "Par3" for the second "word". The reason is that when you count real words, consecutive spaces should be ignored.
>
>I recommend copying your string to an array with alines(). Then, loop through the array.
>
>Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform