Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse a GUID? Fastest way?
Message
De
21/03/2008 21:42:58
 
 
À
21/03/2008 19:17:34
Mike Yearwood
Toronto, Ontario, Canada
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:
01304509
Vues:
14
>Hey all
>
>It's easy enough to take a string and reverse it...
>
>
LPARAMETERS m.tcString
>LOCAL m.lnI, m.lcTemp
>m.lcTemp = ""
>FOR m.lnI = LEN(m.tcString) TO 1 STEP -1
>  m.lcTemp = m.lcTemp + SUBSTR(m.tcString,m.lnI,1)
>ENDFOR m.lnI
>RETURN m.lcTemp
>
>But I would like a faster way.
>
>Given a 128 Bit (16 Byte) GUID, how can it be reversed except for that?
>
>I played with CTOBIN(BINTOC()) but while I'm getting close, it's just not exact.
>
>Starting with this GUID, 009A946C98F7DC1181E3000D56EC5F75, I'd like to see it become 755FEC560D00E38111DCF7986C949A00
>
>Thanks

May I ask why you want to do that?

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

Click here to load this message in the networking platform