Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating before a hyphen
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738936
Message ID:
00739002
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
>Hey everyone,
>I am trying to evaluate some characters that come before a hyphen. Is there a way to evaluate those characters that come before a hyphen. Example:
>test-test1. Is there a way to look at this string and grab just "test" from it. Also, is there a way to look at this string and grab just "test1". Any help would be appreciated. Thanks.



wordnum("test1-test2", 1, '-') &&If you are using foxtools.fll
getwordnum("test1-test2", 1, '-') &&If you are using VFP7.0
Previous
Reply
Map
View

Click here to load this message in the networking platform