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:
00702997
Vues:
24
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform