Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Communicating with external device
Message
From
30/09/1998 07:26:55
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00140498
Message ID:
00142289
Views:
28
>>Integer is a four-byte number. So your integer should look like this:
>>first three bytes should contain zeros, the last byte should contain 1 (chr(1))
>
>The data type integer varies by situation; having dealt with scales before, it's extremely doubtful that it's a 32 bit unsigned long. Also, the order of presentation varies according to how the hardware implements the data type, for example, while Motorola-based 32 bit processors represent a 0x00000001 memory as (0x00)(0x00)(0x00)(0x01), an Intel 32 bit x86 machine would represent it as (0x01)(0x00)(0x00)(0x00) (this is the Big Endian/Little Endian representation issue.)

Thank you, Ed, for reminding me of that difference in representation. I started my programming career on a main-frame which used Motorola-based representation.
The old knowledge sometimes seeps through, this is how subconsience tries to return us to the good old years.
Best regards.
A moment of silence is our cosmic reset button.
Previous
Reply
Map
View

Click here to load this message in the networking platform