PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
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 the list to use.
<Subscript>: Optional character string
Subscript of the element that must 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 required version
  • Version 14
Comments
Click [Add] to post a comment