Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert a Binary Character to Integer
Message
 
 
To
08/08/2003 15:56:59
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00818393
Message ID:
00818466
Views:
14
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?
>>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform