Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning the number of decimals a field has
Message
 
 
À
14/08/2003 12:57:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00820138
Message ID:
00820237
Vues:
16
>Thanks I shorted it down to
>
>I need to add the MAX function for whole numbers
>
>ln_dec = MAX(LEN(TRIM(PADR(MOD(field, 1), 21))) - 2, 0)
>
It will still fail if the value of the field is null. AFIELDS will never fail as it is not dependent on the value of the field.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform