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:
00702999
Views:
20
My question was about form's control. It should be prefilled, I experimented with KeyPress, but don't like the result. I'm now experimenting with GotFocus...

Ok, GotFocus seems to work well...

Can I have InputMask A99999999? It doesn't seem to work...

>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.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform