Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the last digit
Message
From
21/04/2006 11:26:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01115397
Message ID:
01115413
Views:
7
>Dear friend
>
>Thank you
>Besides the verify digit I also need to obtain every number as separated to
>store them in a variable
>
>422603445
>
>4
>2
>2
>6
>0
>3
>4
>4
>
>Moses

In that case, it seems to me that converting the number to a string is easiest.
Temp = trans(422603445)
for i = 1 to len(Temp)
  ? val(substr(Temp, i, 1))
next
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform