Parse String to test the length of a string
Posted: Fri Nov 18, 2011 9:10 am
I am using Parse String to try and work out the length of a string.
I am splitting a string at position 21
Parse String $VMS_SERIALNUM$ into Variables VMS_SERIAL_A and VMS_SERIAL_B (Split at position from start)
However if VMS_SERIALNUM is say 12 chars, VMS_SERIAL_A is 12 chars long, so I can't tell how long this string is if it is less than the requried length.
How can I detect the length of a string using this or another method?
I am splitting a string at position 21
Parse String $VMS_SERIALNUM$ into Variables VMS_SERIAL_A and VMS_SERIAL_B (Split at position from start)
However if VMS_SERIALNUM is say 12 chars, VMS_SERIAL_A is 12 chars long, so I can't tell how long this string is if it is less than the requried length.
How can I detect the length of a string using this or another method?