PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode of FileToMemoryList
  • Modifying the properties associated with the list box
  • Various
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
FileToMemoryList (Function)
In French: FichierVersListeMémoire
Fills a memory list box or combo box with all records found in a data file or in a query. The list box or the combo box is not cleared before it is filled with the content of file or query.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Add the "<None>" element to the list box named "LIST_Customer"
// When the user selects this element,
// the value "-1" will be returned
ListAdd(LIST_Customer, "<None>" + gLink("-1"))
// Add after the "<None>" element,
// the names of the customers found in "CUSTOMER" file
FileToMemoryList(LIST_Customer, CUSTOMER, NAME, NAME, CUSTOMERID)
Syntax
FileToMemoryList(<List Name> [, <File Name> [, <Name of Displayed Item> [, <Name of Sort Item> [, <Name of Stored Item>]]]])
<List Name>: Character string (with or without quotes)
Name of List Box or Combo Box control to fill.
<File Name>: Optional character string (with or without quotes)
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 (with or without quotes)
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 (with or without quotes)
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 (with or without quotes)
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 Displayed Item> + gLink(<Name of Stored Item>).
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 fills the list box with all the records found in <File Name> sorted on <Name of Sort Item>. If a filter is found on this item, this filter is taken into account.

Modifying the properties associated with the list box

The following properties are modified by this function:

Various

  • The list box (or the combo box) is not cleared before it is filled.
  • This function cannot be used on a table: We recommend that you use FileToMemoryTable.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Using the FileToMemoryList Command
Nessa dica de hoje
vou criar uma listBox Manualmente
Usando o Comando FileToMemoryList
//=======================
In this tip today
I'll create a listBox manually
Using the FileToMemoryList Command
//=======================
Dans cette astuce aujourd'hui
Je vais créer un listBox manuellement
Utilisation de la Command FichierVersListeMémoire

//Criar List box de Uma Tabela

FileToMemoryList(LISTE_EstadosProgramacao,estado,estado.uf,estado.uf,estado.uf)

//=======================

http://windevdesenvolvimento.blogspot.com.br/2017/03/aula-1080-windev-listbox-011-listbox.html

https://www.youtube.com/watch?v=vcyT33utcp0


De matos
Mar. 10 2017