( x )

alphagetvalue$()


Get a gadget's value.

Use this to read values from textboxes, dropdowns etc..
 

Syntax


value$=alphagetvalue$( gadget_id$ , [return_type] )
 

Parameters

Variable Description Default value
gadget_id$ string containing the gadget id$ you wish get the value from. The gadget's id$ is set/created in the AlphaGui editor. -
return_type The value type returned, either 0 or 1, will return what the first table shows if return_type is 0 otherwise it will return what the second shows:
 

Gadget type

Returns

Label None
Button None
Text box The text inside the textbox
Integer box The integer value
Float box The float value
Text area  <void>
Drop down The selected option. where zero is the first option
Cycle The selected option. where zero is the first option
H-Slider Horizontal position of slider knot in the range 0.0...1.0 inclusive.
V-Slider Vertical position of slider knot in the range 0.0...1.0 inclusive.
H/V-Slider Horizontal position of slider knot in the range 0.0...1.0 inclusive.
Checkbox Unchecked = 0 , Checked = 1
Option list The selected option. where zero is the first option

 

Gadget type

Returns

Label None
Button None
Text box None
Integer box None
Float box None
Text area  <void>
Drop down All the options separated by a "|"
Cycle All the options separated by a "|"
H-Slider None
V-Slider None
H/V-Slider Vertical position of slider knot in the range 0.0...1.0 inclusive.
Checkbox None
Option list All the options separated by a "|"
0

Returns

The gadget's value as a string$

Back