Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hex as string
Message
De
03/02/2008 15:32:37
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01288749
Message ID:
01288838
Vues:
17
>>>In VFP9 you can use the 0h prefix:
>>>
>>>?0h414243="ABC"
>>
>>But then the 0h prefix denotes a varbinary variable, which will be interpreted as a binary string or as a string interpretation thereof, depending on what's first...
>>
>>
?0h414243
>>?""+0h414243
>>c="414243"
>>?EVALUATE("0h"+c)
>>?EVALUATE("[]+0h"+c)
>>
>
>True, but it still works in a search and replace, without conversion. Which is what I understand Hilmar is trying to do.

Yes - just wanted to emphasize that in case of 0h strings (aka varbinary), the rules of string manipulation are somewhat different from what we're used to, so the usual IT DEPENDS really has to be capitalized. It works, just needs to be worked out how.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform