Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 first letters in a field are fixed
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00702996
Message ID:
00702999
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform