WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Setting Spinner Control


Question:

Here is an example using a variable for the start|end|increment values in a spinner control.
mins="1|60|1"
MyDialog002=`097,009,018,012,SPINNER,mins,"15",DEFAULT,2,0,DEFAULT,DEFAULT,DEFAULT`
But putting the hard values in the dialog line doesnt work, as such
MyDialog002=`097,009,018,012,SPINNER,1|60|1,"15",DEFAULT,2,0,DEFAULT,DEFAULT,DEFAULT`
If put that parameter "in quotes" and it worked.
MyDialog002=`097,009,018,012,SPINNER,1|60|1,"15",DEFAULT,2,0,DEFAULT,DEFAULT,DEFAULT`
Another weird thing - when I hard coded it, I could make it go negative. With a variable, it would not go below "00".

why?

Answer:

From the WIL help file:

"Use the control’s variable attribute to set the range of values that the control will display. The variable should contain a vertical bar (|) delimited list with two or three items."

Note the phrase "variable should contain". If you do not place a valid variable name in the variable attribute field of a control definition, the contents of the field are ignored and you get defaults.


Article ID:   W16923
File Created: 2007:07:03:14:27:06
Last Updated: 2007:07:03:14:27:06