ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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 the management of a Spin control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling a Spin control through programming
Overview
WINDEV and WINDEV Mobile allow you to handle a Spin control through programming. 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.
Remark: You can also 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.
Remark: You can also use the Value property.
Properties specific to the management of a Spin control
The following properties are used to manage the characteristics of a spin by programming.
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 a Spin control, see Properties associated with Spin controls.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 01/23/2023

Send a report | Local help