Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a Binary Character to Integer
Message
From
11/08/2003 10:52:54
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00818393
Message ID:
00818906
Views:
21
Thanks everybody! All three functions work perfectly.

>Hi Roberto,
>
>Here's the function you can use to convert your data that is stored as Long Integers to VFP integer.
FUNCTION Long2Num(tcLong)
>DECLARE RtlMoveMemory IN WIN32API Long @Dest, ;
>		String @Source, Long Length
>LOCAL lnNum
>lnNum = 0
>= RtlMoveMemory(@lnNum, tcLong, 4)
>RETURN lnNum
>
>
>
>>Sergey, the type and size of the field that I am receiving is Character (4) and contains Binary Character Date. I want to convert it to Integer. Thanks!
>>
>>PS: If you want I can send the .dbf with one record.
>>
>>
>>>Roberto,
>>>
>>>What's the type and size of the field?
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform