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?
>>>