|
|
|
|
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. // 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|