Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if char field in a table is a number
Message
De
27/06/2009 11:44:56
 
 
À
27/06/2009 11:29:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01408688
Message ID:
01408801
Vues:
77
'3.4' isn't a number?
'-3' isn't a number?
IF EMPTY( CHRTRAN( MyTable.MyField, '0123456789.-', '' ) )
  *** This is a number
ENDIF
Of course, this does not take into account the position of the '-' or whether or not there are 2 '.' in the string. But you have received some other advice on how to do this <s>.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform