Today I'm having this issue with optionVars - which you might know are not written as standard variables with a dollarsign:
$temp = `optionVar -q "myOptVar"`; checkBox -align "left" -annotation "bla bla" -label "bla bla" -offCommand "myCommand(0)" -onCommand "myCommand(1)" -value $temp checkBox;
I've tried, tried and tried some more to incorporate the first line to the -value -flag of my checkbox and all I get is syntax errors.
So how do you write that query for the value flag properly?
-value (`optionVar -q "myOptVar"`) - NOPE
I've tried omitting the quote signs with backslashes and all but I'm not getting anywhere. And after god knows how much time I give up! It's not worth a more painful headache than I already have so I'll surrender and ask you guys here instead - I hope you don't mind. Thanks.