ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Spin control
  • Overview
  • Retrieving the spin value
  • Modifying the spin value
  • Properties specific to Spin controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating Spin controls programmatically
Overview
WINDEV and WINDEV Mobile allow you to manipulate a Spin control programmatically. To do so, use the variable of the Spin control in the code.
The variable of the Spin control:
  • corresponds to the name of the Spin control.
  • is initialized with the spin value.
Retrieving the spin value
To retrieve the spin value, use the following syntax:
<Position> = <Spin Name>
<Position> is an integer variable.
Note: It's also possible to use the Value property.
Modifying the spin value
To modify the spin value, use the following syntax:
<Spin Name> = <Value>
<Value> is a value found between the minimum and maximum value of the spin box control. These values have been defined in the control description window or in the code with the MinValue and MaxValue properties.
Note: It's also possible to use the Value property.
Properties specific to Spin controls
The following properties are specific to the programmed management of spin characteristics.
MaxValueUsed to find out and modify the upper bound of a spin.
MinValueUsed to find out and modify the lower bound of a spin.
ScrollValueUsed to find out and modify the increment step of a spin.

For a complete list of WLanguage properties that can be used with Spin controls, see Spin control properties.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 10/23/2024

Send a report | Local help