using sysparm to pass decimal value

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
bmuganda
Posts: 37
Joined: January 18th, 2018, 11:57 am

using sysparm to pass decimal value

Post by bmuganda »

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

Any ideas?
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: using sysparm to pass decimal value

Post by josh »

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: 37
Joined: January 18th, 2018, 11:57 am

Re: using sysparm to pass decimal value

Post by bmuganda »

Thanks Josh

Yea actually it worked for

Regards

Boniface
Post Reply