AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control de número
  • 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
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 23/01/2023

Señalar un error o enviar una sugerencia | Ayuda local