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.
  • Operating mode of FileToMemoryList
  • Modifying the properties associated with the List Box control
  • Miscellaneous
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
FileToMemoryList (Function)
In french: FichierVersListeMémoire
Fills a memory List Box or Combo Box control with all records found in a data file or in a query. The List Box or Combo Box control is not cleared before being filled with the content of the file or query.
Versions 16 and later
Linux This function is now available for WINDEV applications in Linux.
New in version 16
Linux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
Example
// Ajouter l'élément "<Aucun>" dans le champ Liste "LISTE_Client"
// Lorsque l'utilisateur sélectionnera cet élément,
// la valeur "-1" sera retournée
ListAdd(LISTE_Client, "<Aucun>" + gStoredValue("-1"))
// Ajouter à la suite de l'élément "<Aucun>",
// les noms des clients contenus dans le fichier "CLIENT"
FileToMemoryList(LISTE_Client, CLIENT, NOM, NOM, IDCLIENT)
Syntax
FileToMemoryList(<List Box control> [, <File name> [, <Name of displayed item> [, <Name of sort item> [, <Name of stored item>]]]])
<List Box control>: Character string
Name of List Box or Combo Box control to fill.
<File name>: Optional character string
Name of data file (or query) used. If this parameter is not specified, the name of the data file used corresponds to the one specified when creating the control ("Content" tab in the description window of control).
Content tab of control
<Name of displayed item>: Optional character string
Name of item found in the data file (or query) that will be displayed in the list box or in the combo box.
If this parameter is not specified, the name of displayed item corresponds to the one specified when creating the control ("Content" tab in the description window of control).
If this parameter is not specified and if the "Content" tab is not filed, the displayed item corresponds to:
  • the last item used in the data file.
  • the first column of query.
<Name of sort item>: Optional character string
Name of item used to sort the elements found in the list box or in the combo box. If this parameter is not specified, the name of sort item used corresponds to the one specified when creating the control ("Content" tab in the description window of control).
<Name of stored item>: Optional character string
Name of the item that will be used in programming when an element is selected in the list box.
If this parameter is specified, the value added to the list is <Name of the displayed field> + gStoredValue(<Name of the stored field>).
If this parameter is not specified, <Name of stored item> corresponds to <Name of displayed item>.
PHP This parameter is ignored because the memory list boxes have no stored values in PHP.
Remarks

Operating mode of FileToMemoryList

FileToMemoryList fill the List Box control with all the records from <File name> sorted by <Name of the sort item>. If a filter is found on this item, this filter is taken into account.

Modifying the properties associated with the List Box control

The following properties are modified by this function:

Miscellaneous

  • The List Box (or Combo Box) control is not cleared before being filled.
  • This function cannot be used on a Table control: It is recommended to use FileToMemoryTable.
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment