Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluating before a hyphen
Message
From
07/01/2003 13:11:25
 
 
To
07/01/2003 13:07:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738936
Message ID:
00738940
Views:
16
This message has been marked as the solution to the initial question of the thread.
Before hyphen: SUBSTR( cStr, 1, AT("-",cStr)-1)
After hyphen: SUBSTR( cStr, AT( "-",cStr) + 1 )

>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.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform