ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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).
Note: It is also possible to modify the initial content of List or Combo Box controls by programming, if they are present in a RepeatString Looper control..
Important: A RepeatString Looper control can be used to create an 'Initial Content' attribute on a Combo 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
// Vide la liste et remet son contenu initial
ListDeleteAll(LISTE_Liste1)
ListAdd(LISTE_Liste1, LISTE_Liste1.ContenuInitial)
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. Elements are separated by CR characters.
<Control used>: Control name
Name of the control from which you want to get the initial content. The type of this control must be:
  • 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 has the following format:
<Nom de l'attribut>[Indice de la répétition]
<Initial content>: Character string
List of elements defining the initial content of the object. Elements are separated by CR characters.
Remarks
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/24/2024

Send a report | Local help