<Charles.Stewart@vertu.com> wrote:
> Hello all.
>
> I'm looking for an elegant solution to this (mine is ....shell 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))
regards
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
> Hello all.
>
> I'm looking for an elegant solution to this (mine is ....shell 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))
regards
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
I'm looking for an elegant solution to this (mine is ….shell 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.)
Thanks in advance
CHUCK STEWART
Vertu
Beacon Hill Road
Church Crookham
Hampshire
GU52 8DY
United Kingdom
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".