ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Limitations
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
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.
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).
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.
Example
// 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,

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.
Remarks
Android

Limitations

The InitialContent property is not available on the columns of Table controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/18/2023

Send a report | Local help