Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IsNumeric - VFP analogue?
Message
 
 
À
23/12/1999 10:34:44
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00307922
Message ID:
00307943
Vues:
23
Paul,

Mynumber in my case is already a character expression. I want to differentiate
'12234' from '1aq23'

>>
>>You can use the funcion TYPE.
>>Example:
>>
>>IF TYPE(mynumber) = "N"
>> WAIT WINDOW "IT'S A NUMBER!!!"
>>ELSE
>> WAIT WINDOW "IT'S SOMETHING ELSE!"
>>ENDIF
>>
>>
>>Cheers,
>>
>>Ricardo
> Has this changed from VfP 5 - parameter to TYPE had to be a character expression, ie. TYPE( "mynumber" ) ?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform