Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASCII to Decimal in VFP codes
Message
From
24/10/2002 12:34:35
 
 
To
24/10/2002 12:07:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714939
Message ID:
00714961
Views:
16
>Hello,
>
>I have someone gave me a sample of the conversion of ASCII to Decimal numbers:
>
>0100608F1A3A44 gave 736125 in decimal
>0100608F2C5975 gave 738440
>0100608F242034 gave 737392
>0100608F180810 gave 735844
>0100608F26889E gave 737700
>0100608F21798A gave 737052
>
>How can we do this in VFP ? please help in coding that would be appreciated
>very much.
>PP

Paul,

You'll have to give a bit more info

The numbers do not appear to be int (more than 4 bytes), the number of bytes is 7 (not 8), it's not ebcdic.
If I convert them to double, both by prepending 00 and appending 00, they do not return your yields

There's no apparent logic (not that my brain can see), ie 1st number ends on 4 and dec ends on 5, 3rd number also ends on a 4 and decimal ends on 2

Are they encrypted ?
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform