PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
InitialContent is used to find out the initial content:
  • of a memory List Box control.
  • of a memory Combo Box control.
  • of a "List of values" column found in a Table control.
This initial content was defined:
  • when describing the control ("General" tab of the List Box control, Combo Box control or "List of values" column).
Remark: The initial content of List Box or Combo Box controls can also be modified by programming if they are found 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, a different content can be found for the List Box or Combo Box controls for each occurrence of this looper.
Versions 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This property is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This property is now available in Windows Store apps mode.
Universal Windows 10 App This property is now available in Windows Store apps mode.
Versions 20 and later
iPhone/iPad This property is now available for table columns in iPhone/iPad applications.
New in version 20
iPhone/iPad This property is now available for table columns in iPhone/iPad applications.
iPhone/iPad This property is now available for table columns in iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
// Clears the list and restores its initial content
ListDeleteAll(LIST_List1)
ListAdd(LIST_List1, LIST_List1.InitialContent)
Syntax

Finding out 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 editor or in the page editor for the initial content of the object. The elements are separated by CR characters.
<Control used>: Control name
Name of the control whose initial content is requested. The type of this control must be:
  • Memory List Box,
  • Memory Combo Box,
  • "List of values" column,

Modifying the initial content of a List Box control, Combo Box control or column found in a Looper control Hide the details

<Attribute name>.InitialContent = <Initial Content>
<Attribute name>: Character string (with or without quotes)
Name of the attribute linked to the control whose initial content must be modified. The control linked to the attribute must be a memory List Box control, a memory Combo Box control or a "List of values" column found in a Looper control. This parameter has the following format:
<Attribute name>[Row subscript]
<Initial Content>: Character string
List of elements defining the initial content of the object. The elements are separated by CR characters.
Remarks
Android

Limits

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