cancel
Showing results for 
Search instead for 
Did you mean: 

A string is non numeric error

Former Member
0 Kudos

Hi All,

I have a field total amount which is a string type.

This I need to pass as a shared variable and add to other value .

So i changed the datatype to number like this .

But when I run the report I am getting error 'A string is non numeric'

shared numbervar tot:=tonumber({totamt.total_amount});

Please help

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi Divya,

Try:

If isNumeric({totamt.total_amount}) then

     shared numbervar tot := tonumber({totamt.total_amount})

else

      shared numbervar tot := 0;

-Abhilash

Answers (0)