Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric issues
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01507670
Message ID:
01507671
Views:
105
This message has been marked as the solution to the initial question of the thread.
>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
? RIGHT(TRANSFORM(NumericValue),3)

RAND(-1)
? (RAND()*100000000)%1000
(both not tested!)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform