Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the last digit
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01115397
Message ID:
01115408
Views:
7
>Something like this:
>
>ln=422603445
>
>?right(trans(ln),1)


That will return a character value....
If he wants an interger then something like this..

ln=422603445

? INT(VAL(right(trans(ln),1)))


>>Hello felows
>>
>>I have the numeric field below where 5 is a verify digit
>>422603445
>>However is not separated, is all in a field
>>How can I get the last digit ?
>>
>>Regards
>>
>>Moises
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform