using sysparm to pass decimal value

Discussions about CSEntry
bmuganda
Posts: 30
Joined: January 18th, 2018, 11:57 am

using sysparm to pass decimal value

Postby bmuganda » February 9th, 2018, 8:45 am

Is it possible to use sysparm function to pass decimal value such as latitude and longitude?

Any ideas?

josh
Posts: 1635
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: using sysparm to pass decimal value

Postby josh » February 9th, 2018, 10:19 am

Yes. You can write the decimal value to the pff file. When you load it using sysparm it will be a string but you can use tonumber() to convert it to a decimal. Something like:

numeric decimalVal = tonumber(sysparm("MYDECIMALPARAM"));

bmuganda
Posts: 30
Joined: January 18th, 2018, 11:57 am

Re: using sysparm to pass decimal value

Postby bmuganda » February 22nd, 2018, 8:03 am

Thanks Josh

Yea actually it worked for

Regards

Boniface


Return to “Entry”