Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching for characters
Message
From
24/01/2003 08:19:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/01/2003 08:15:33
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00744971
Message ID:
00745029
Views:
25
This message has been marked as the solution to the initial question of the thread.
>Goodmorning Jos:
>
>Thak you for your kind reponse. With the IF statement, I want to check if variable mCharacters contains any of the alphabetic letters. If it does then, I want to remove the first two characters, which are the position that could potentially have alphabectic characters, so that all that is left are numbers. This field has been declared as a Character field.

If the letters can only appear in the first two places:
#DEFINE AllLetters "ABCDEFGHIJKLMNOPQRSTXYZ"

if substr(mCharacters, 1, 1) $ AllLetters;
    or substr(mCharacters, 2, 1) $ AllLetters
  * Do something here
endif
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