PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Operating mode of FileToMemoryList
  • Modifying the properties associated with the List Box control
  • 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 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
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 control 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 Box control> [, <File name> [, <Name of displayed item> [, <Name of sort item> [, <Name of stored item>]]]])
<List Box control>: 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 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:

Various

  • The List Box (or Combo Box) control is not cleared before being filled.
  • This function cannot be used on a Table control: We recommend that you use FileToMemoryTable.
Component : wd240obj.dll
Minimum version required
  • 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
10 Mar. 2017