09-02-2005 08:38 AM
09-02-2005 10:33 AM
I'm not completely sure what you are looking for but:
To convert a character to a hex string representing its ascii value:
Str(Asc("a"), "%x")
---> "61"
To convert a hex string representing an ascii value to a character:
02-16-2011 04:13 PM
Hi,
is it possible to convert long char to hex in TestStand? For example how to convert string "System" to hex. Expression Asc() allow only converts first char in string.
Thanks for help
Kate
02-17-2011 10:00 AM
What exactly are you trying to do? TestStand does not store strings as unicode, it use multi-byte encoding instead. Perhaps there is a better way to accomplish what you are trying to do.
-Doug
02-17-2011 10:03 AM
If you are using TestStand 2010, you can use the .NET adapter to use the System.String .NET API directly with TestStand strings. To do so select mscorlib from the GAC assembly list and select System.String as the class. If you select <Use Existing Object> as the first call, you can specify a TestStand string variable for the object.
Hope this helps,
-Doug