Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric issues
Message
De
18/04/2011 01:57:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01507670
Message ID:
01507685
Vues:
54
>Hi
>
>How to get the last 3 digits of a numeric fields, as below:
>
>
>39932 ...................932
>111115454.............454
>
>Or how to generate random numeric values under 1000
>
>939
>221
>014
>
>etc
>
>Moises

Hi Moises,

another option would be to use the modulo function.

i1=123456789
?MOD(i1,1000)
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform