PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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 and modify 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.
  • Versions 20 and later
    WINDEV in a Spreadsheet control.
    New in version 20
    WINDEV in a Spreadsheet control.
    WINDEV in a Spreadsheet 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).
  • Versions 20 and later
    WINDEV when initializing the Spreadsheet control in the window editor.
    New in version 20
    WINDEV when initializing the Spreadsheet control in the window editor.
    WINDEV when initializing the Spreadsheet control in the window editor.
Note: 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 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 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 Name>..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 Name>: Character string (with or without quotes)
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,
  • Versions 20 and later
    WINDEV Spreadsheet initialized in the window editor.
    New in version 20
    WINDEV Spreadsheet initialized in the window editor.
    WINDEV Spreadsheet initialized in the window editor.

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
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment