ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Spin control
  • Item characteristics
  • Handling the item and the Spin control
  • Updating the Spin control with the data from the item
  • Updating an item with the data from the 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
Binding a Spin control to an item
Item characteristics
A Spin control can be bound to an item in a data file, query, etc.
In this case, the item characteristics are as follows:
  • the item is an Integer.
  • the item contains the value of the Spin control.
  • the item value must be between the minimum and maximum value of the Spin control.
Handling the item and the Spin control

Updating the Spin control with the data from the item

1st case: the controls in the window are bound to items in a data file
All the controls bound to an item in the data file (or a related file) will be updated by FileToScreen.
2nd case: the controls in the window are not bound to items in a data file
A value must be assigned to each control using the following syntax:
<Control name> = <Data file>.<Item>

Updating an item with the data from the Spin control

1st case: the controls in the window are bound to items in a data file
All the items in the data file (or a related file) that are bound to a control in the window will be updated by ScreenToFile.
2nd case: the controls in the window are not bound to items in a data file
The value of each control must be assigned to each item using the following syntax:
<Data file>.<Item> = <Control name>
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help