Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
U_long
Message
De
25/05/2001 14:32:35
 
 
À
25/05/2001 12:16:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Re: U_long
Divers
Thread ID:
00511591
Message ID:
00511658
Vues:
16
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform