AnsweredAssumed Answered

vrf String conversion

Question asked by VRFuser on Nov 15, 2007
<> wrote:
> Hello all.
> I'm looking for an elegant solution to this (mine is we say
> "a little rough???)
> I have a string  (See below) which wants to be converted to a proper
> string.
> If you look at positions 0 and 1 you will see 56. If you convert this
> to
> hex(0x56) you get an ASCII "V"
> In the same way, the whole string is meant to say "VRAPT-TEST-SET"
> "56,52,41,50,54,2d,54,45,53,54,2d,53,45,54"
> Does any body know of an elegant way of converting a string
> representation of hex numbers into a real string? (don't need to worry
> about uni-code here. ASCII is fine.)

The "From String" and "To String" objects are great for all sorts of things-- this is no exception

Two objects will do the trick just fine: From String to convert to text array ( READ TEXT X HEX ARRAY:* ) then To String to write out as single string ( WRITE TEXT IntToChar(a)

On the To String turn off EOL and set array separator as null.

Or for another approach-- perhaps slightly more elegant-- replace the ToString with a formula  sum(intToChar(a))



Stan Bischof  Agilent Technologies  707-577-3994

You are currently subscribed to vrf as: To subscribe please send an email to: "" with the word subscribe in the message body.
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".
Search the "unofficial vrf archive" at "".
Search the Agilent vrf archive at "".