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
Property Content property allows you to read or write the contents of a field from a block:
  • List Box populated programmatically,
  • Combo Box populated programmatically,
This allows you to read or write all the rows in the control in a single line of code.
Note: On a List Box control or Combo Box control, it is only possible to read the list of items.
Example
// Ajoute des éléments au contenu actuel du champ Liste
LISTE_Liste1.Contenu = LISTE_Liste1.Contenu + CR + "Florence" + CR + "Emma"
Syntax

Getting the content of a Spreadsheet control, or a List Box or Combo Box populated programmatically Hide the details

<Control content> = <Control used>.Content
<Control content>: Character string
List of elements for the content of the control. Elements are separated by CR characters.
<Control used>: Control name
Name of the control to be used. This control must be:
  • a List Box control populated programmatically,
  • a Combo Box control populated programmatically,
  • a table column of type "List of values",

Changing the content of a Spreadsheet control, or a List Box or Combo Box populated programmatically Hide the details

<Control used>.Content = <Control content>
<Control used>: Control name
Name of the control to be used. This control must be:
  • a List Box control populated programmatically,
  • a Combo Box control populated programmatically,
  • a table column of type "List of values",
<Control content>: Character string
List of elements displayed in the control. Elements are separated by CR characters.
Remarks
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/13/2025

Send a report | Local help