Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
10 numbers
Message
De
09/09/2008 04:26:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
09/09/2008 04:22:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345962
Message ID:
01345976
Vues:
13
Why not?

no # id_no

Agnes
>Your code won't work!
>scan 
>  if LEN(ALLTRIM(id_no))==10 AND CHRTRAN(ALLTRIM(id_no),"1234567890","")==""
>    replace no WITH 111
>  else &&error
>    replace no WITH 1
>  endif
>endscan
>
>
>>thank you it works
>>
>>i need to use it as below
>>
>>scan FOR LEN(ALLTRIM(id_no))==10 AND CHRTRAN(ALLTRIM(id_no),"1234567890","")==""
>>    replace no WITH 111
>> else &&error
>>    replace no WITH 1
>>endscan
>>
>>
>>thanks
>>>Hi,
>>>
>>>>if the data (exactly 10 numbers) as 1562907543
>>>
>>>IF LEN(ALLTRIM(data))==10 AND CHRTRAN(ALLTRIM(data),"1234567890","")==""
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform