Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How often is SYS(2015) changed?
Message
De
08/09/2011 04:44:19
 
 
À
08/09/2011 04:34:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01521892
Message ID:
01522978
Vues:
42
>>>four hex digits isn't enough to hold thread ID values. ThreadId is a DWORD (8 bits) and so your hex width needs to cover 8 characters. At the very least you'd need 5 hex digits since threadIDs definitely can exceed 65535...
>>>
>>>+++ Rick ---
>>
>>Actually - I think a DWORD is more than 8 bits ;)
>>
>>
>>
>>>
>>>>That is a very excellent idea...
>>>>But I prefer to use hexadecimal value that will always result 4 bytes length.
>>>>
>>>>
>>>>m.lcNewID = SYS(2015) + RIGHT(TRANSFROM(Application.ThreadId, "@0"), 4)
>>>>
>>>>
>>>>What do you think, sir?
>
>
>LOL! You have an eagle eyes!
>DWORD is 32bits, I think Rick meant is 8 bytes.
>
>
>Regards,
>Onytoo


Yeah - I figured it was a typo
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform