|
|
|
|
|
InitialContent (Property) In french: ContenuInitial
The InitialContent property gets the initial content: - of a List Box control populated programmatically.
- of a Combo Box control populated programmatically.
- of a "List of values" column in a Table control.
- of a Spreadsheet control.
This initial content is defined: - in the control description ("General" tab of the List Box and Combo Box controls, or the "List of values" column).
- when initializing the Spreadsheet control in the window editor.
Remark: The initial content of List Box or Combo Box controls can be programmatically modified if they are in a Looper control. Important: A Looper control is used to create an 'Initial content' attribute on a Combo Box or List Box control. Therefore, the content of the List Box or Combo Box control can be different in each row of the looper.
// Clears the list and restores its initial content ListDeleteAll(LIST_List1) ListAdd(LIST_List1, LIST_List1.InitialContent)
Syntax
Getting the initial content of a control Hide the details
<Initial content> = <Control used>.InitialContent
<Initial content>: Character string List of elements entered in the window or page editor for the initial content of the object. The elements are separated by CR characters. <Control used>: Control name Name of the control from which you want to get the initial content. This control must be of the following type: - List Box populated programmatically,
- Combo Box populated programmatically,
- "List of values" column,
- Spreadsheet initialized in the window editor.
Changing the initial content of a List Box or Combo Box control, or a column in a Looper control Hide the details
<Attribute name>.InitialContent = <Initial content>
<Attribute name>: Character string Name of the attribute linked to the control whose initial content must be modified. The control linked to the attribute must be a List Box or Combo Box populated programmatically or a column of type "List of values" contained in a Looper control. This parameter is of the form:
<Attribute name>[Row index] <Initial content>: Character string List of elements defining the initial content of the object. The elements are separated by CR characters.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|