cancel
Showing results for 
Search instead for 
Did you mean: 

problem with ABS function

Former Member
0 Kudos

Hello Everyone,

i have a serial number which has been defined in global defination of smartforms as STRING .

The serial number can be numeric , alphabet or alphanumeric .

when it is numeric , then it displays numbers as 000000000011112345 .

so what i have done is i used the function 'ABS' .

This function works fine when the serial number is numeric but it gives a short dump when the serial number is alphabet or alphanumeric .

any suggestions gurus .

sumit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Store all characters in a string say

and check the following condition.


c1 = 'abcdefghijklmnopqrstuvwxyz'
if var1 ca c1.
<do nothing>
else
var2 = abs(var1).
endif.

Hope this helps

Thanks

Mani

Answers (1)

Answers (1)

former_member196079
Active Contributor
0 Kudos

Hi

try to use the TRY CATCH statment.

Best regards

Marco