Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hex as string
Message
From
03/02/2008 15:32:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01288749
Message ID:
01288838
Views:
16
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform