Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse a GUID? Fastest way?
Message
De
21/03/2008 22:51:38
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
21/03/2008 22:08:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01304506
Message ID:
01304514
Vues:
21
>>>>Thanks
>>>
>>>May I ask why you want to do that?
>>
>>I can't tell you yet.
>
>err ... OK. ("yet" is the key word here)
>
Here's a sample of how I applied what you provided:
m.cGUID = REPLICATE(CHR(0),16)
CoCreateGuid(@m.cGUID)
m.cGuid = ;
	BinToC(CToBin(Right(m.cGuid, 8), "BRS"), "BRS") + ;
	BinToC(CToBin(Left(m.cGuid, 8), "BRS"), "BRS")
It's a little faster. Looks like the timing I'm seeing is not just from the reversal process.

Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform