buddyrich2
Technical User
I have been trying for hours to get a VERY simple function to work. All I am trying to do is convert a character into a numeric value using val(). The character is the result of a string translation and it APPEARS to be a number in every sense of the word but it will not translate.
Has anyone ever heard of this?
Here is the stringname:
7U - Open Division7 of 12 Available
Here is the split to character:
STORE ALLTRIM(SUBSTR(stringname,AT('of',stringname)-3,3)) TO char_result
should convert to number:
val(ALLTRIM(SUBSTR(stringname,AT('of',stringname)-3,3)))
Funny thing is that if the result is more than 1 character it seems to work. For instance a "12" instead of a "7"
Has anyone ever heard of this?
Here is the stringname:
7U - Open Division7 of 12 Available
Here is the split to character:
STORE ALLTRIM(SUBSTR(stringname,AT('of',stringname)-3,3)) TO char_result
should convert to number:
val(ALLTRIM(SUBSTR(stringname,AT('of',stringname)-3,3)))
Funny thing is that if the result is more than 1 character it seems to work. For instance a "12" instead of a "7"