Page 1 of 1

Putting values into variables

Posted: Thu Mar 13, 2008 9:09 am
by bjb007
I have a recurring problem figuring
out the syntax for getting the contents
of a field etc. into a variable.

Have tried 100 combinations of

put label comboRedBlack into arrayParms[RedBlack]

to put the value in a combo box into an array
and get a variety of error messages. It's in the
label of the combo box - and really doesn't want
to leave.

Has anyone worked out some general rules for
this (apparently) simple operation which would be
handled in other languages quite easily by reference.

My sanity is at stake here.

Posted: Thu Mar 13, 2008 9:58 am
by Mark
Hi Bjb007,

A label is a property. It is preceded by "the" and followed by "of" and a reference to an object.

Code: Select all

put the label of btn "Your Combobox" into myVar
Best,

Mark

Putting values into variables

Posted: Thu Mar 13, 2008 1:50 pm
by bjb007
Well, well, there's a real twist!

A combobox is a button?

Never would have thought of that one.

From the docs:
"Button objects can be push buttons, checkboxes,
radio buttons, or menus, depending on the setting
of their style property."

Interesting also that the array is sorted
alphabetically so if you refered to
it by element number you'd get
the wrong value.