JavaScript
A5.ListBoxvalueInList Method
Syntax
A5.ListBox.valueInList(target)
Arguments
- targetstringnumberobject
The index or value of the row of data. See A5.ListBox.getIndex.
Returns
- inListboolean
Whether or not the target rendered in the list.
Description
Check whether a value is rendered in the list.
Example
// To get a pointer to the A5.ListBox class see {dialog.object}.getControl // assume lObj is a pointer to an instance of the A5.ListBox class if(lObj.valueInList('ALFKI')){ // check to see is there is a row with the value of "ALFKI" alert('ALFKI was found'); }
See Also