on 06-19-2014 11:12 PM
Good afternoon all,
I would like to test if a character is a number or a string . ¿ How can I do it ? . I can not find any function in the link editor .
Thanks in advance,
Yes, the number function exists, and will error if it is a string (non-number): http://help.sap.com/saphelp_mii150sp00/helpdata/en/4c/c8a0fc8e9b60c5e10000000a15822d/content.htm?fra...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use the number() function here are the results you will get:
number("300") returns 300
number("abcde") returns error
number("301abcde100") returns 301
number("abde300") returns error
a better way to test for a number only vs an alphanumeric string is to use the format function like this:
format(300,"#") returns 300
format("300","#") returns 300
format("abcde","#") returns error
format("301abcde100") returns error
format("abde300") returns error
regards, Steve
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.