ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
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
List,Get (External language)
In french: Liste,Recupere
Retrieves the value of a given element or the value of the selected element in a drop-down list or in an expanded list.
Example
// In C
CALLWD("List,Get,ProdList,3");
strcpy(Value,WDString);
// In Pascal
CALLWD('List,Get,ProdList,3');
Value:=WdString;
// In VB
call CALLWD("List,Get,ProdList,3")
Value=WdString
Syntax
List,Get(<List name> [, <Subscript>])
<List name>: Character string
Name of list to use.
<Subscript>: Optional character string
Subscript of the element that will be retrieved.
Remarks
  • If <Subscript> is not specified, the value of the selected element is contained in WdString. The subscript of the element (if it exists) is contained in WdInt.
    List,Select,? should be used to retrieve the subscript of the selected element.
  • If no element is selected in the list or if the list is empty, List, Get returns -1 in WdInt.
  • If <Subscript> is specified, List, Get returns in WdString the value of the element whose subscript is specified and returns in WdInt the size of the element.
  • For the editable combo boxes, List, Get always returns WdString that contains the valued of the edit control of the combo box.
  • WdInt has no meaning.
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help