Problems with type casting of loc PV an combo box

18 views
Skip to first unread message

Blaž Kranjc

unread,
Jun 3, 2015, 1:33:50 PM6/3/15
to css...@googlegroups.com
Hello all,

I have a problem with BOY screen. I'm trying to create a combo box that gets values [01,02,..., 12] to local PV (to use this value in PV macro), but I have problems. No matter what I do numbers written in value of pv are interpreted as doubles and fall out of range (in case of 01, the value becomes 1.0 and the combo box displays nothing). I tried typing the loc PV with loc://testpv<VString> but then no values are written (01 is of type double and it's not allowed to be written in string pv). I tried quoting the values but then the quotes remain in the combo box and it's not pretty... Is there any easy fix for this?

Have a great day,

Blaz


Reply all
Reply to author
Forward
0 new messages