Hello,
I am trying to check if a string length equals another number..
Lets say I have the following string: 0Dabcde12345678
Now I want to convert the first 2 digits of the string to a DEC number (0D = 13)
Then I want to check if the rest of the number length equals 13.
However, if the string equals 09123456789 then the 09 is already a DEC number as the rest of the string should equal 9. (123456789).
But if the string equals X812345678 then it will fail as the first 2 digits is not a valid hex or dec number. Anyone know how to check if the first 2 digits is a hex or dec number ?
I am trying to check if a string length equals another number..
Lets say I have the following string: 0Dabcde12345678
Now I want to convert the first 2 digits of the string to a DEC number (0D = 13)
Then I want to check if the rest of the number length equals 13.
However, if the string equals 09123456789 then the 09 is already a DEC number as the rest of the string should equal 9. (123456789).
But if the string equals X812345678 then it will fail as the first 2 digits is not a valid hex or dec number. Anyone know how to check if the first 2 digits is a hex or dec number ?