|
|
|
|
- Overview of the indexed control
- Creating an indexed control
- Create an indexed edit control
- To create an indexed column
- Indexed control and array item
- Notes
- Indexed control and array item
Overview of the indexed control A control is an indexed control if it contains several controls with the same name. Each control has the same name but a different index. This index allows you to easily handle the desired control programmatically. Remark: The indexed controls are used to easily manage the Array text items defined in the data model editor. Which controls can be indexed? Edit controls and columns in Table controls (numeric, text, currency, date and time). Caution: - All indexed columns must be in the same Table control.
- The indexed controls can only be used in the window editor. The indexed controls cannot be used in the report editor.
Creating an indexed control Create an indexed edit control To create an indexed edit control. - Create a new Edit control.
- Give it the name of an existing edit control. The controls are indexed.
To create an indexed column All you have to do is create a new column in a Table control with the same name as an existing column. - The name of both columns must end with a number (for example, MyColumn1).
- When creating the second column, WINDEV proposes to create an indexed control. If you accept, the index is displayed in the description window of the Table control.
Indexed control and array item After its creation, the indexed control can be linked to one of the elements of an array item. Indexed control and array item When using an array item, there is no need for all the indexed controls corresponding to the item to be in the same window (contrary to WINDEV 5.5). If the array item contains 6 elements, only three elements may be found in the window. In a window, an indexed control can be located: - in a window (foreground).
- in a plane.
- in a tab.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|