Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
U_long
Message
From
25/05/2001 14:32:35
 
 
To
25/05/2001 12:16:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Re: U_long
Miscellaneous
Thread ID:
00511591
Message ID:
00511658
Views:
15
>>Im trying to convert an integer to U_LONG, I have seen code that converts a number to LONG, is it possible to convert an integer to U_LONG?
>>
>>Mike
>
>Mike,
>If you'd pass that as a numeric value then receiver could cast it. Otherwise transform(,'@0') and pad with chr(0)s.
>Cetin


No... Thanks anyway, that does not work...

What I would like is a function like the NumToLong Function in the clsheap class, But instead of Long I want U_LONG.

I know there is a difference between sign long, and unsign long. Both are 4 bytes, but there is a difference in the 31 bit? Or sign is 0-255, and unsign is -127 to 127? Or its reversed? I just dont know how to create one in VFP. I see that creating a LONG is possible, how bout a u_long?

Thanx,

Mike
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform