Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 first letters in a field are fixed
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00702996
Message ID:
00702997
Views:
22
What about
lcValue = "A012 456"
? LEFT(lcValue,2) <> "A0" ;
		OR LEN(ALTRIM(lcValue)) <> 8 ;
		OR LEN(CHRTRAN(PADR(SUBSTR(lcValue,3),6), "1234567890", ""))> 0
>Hi everybody,
>
>I have a character 8 field, which should always have 'A0' as two first letters and all other 6 letters must be digiits. I'm thinking, how should I implement such control...
>
>Do you have ideas?
>
>Thanks in advance.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform