Returns a value from an object.
Syntax
object.getValue([nIndex | strField])
Parameters
object
A script object.
nIndex
Index of an item in the zero-based list. If left null, the index defaults to the currently selected item. The index of the currently selected item is equivalent to the value of the selectedIndex property.
strField
A string of the field name.
Remarks
For Listbox and OptionGroup objects, the method returns a text string that corresponds to the HTML attribute VALUE.
For the fields object, the method returns the value of the field for the current record.
Note For the OptionGroup object and ASP pages, there is an another way to return the value setting. You can reference an OptionGroup object by using its name with "_value" appended to it. For example, you could pass the value from an OptionGroup whose id is "myOptionGroup" by calling:
myVar = request("myOptionGroup_value")
In the scripting object model, you could return the same result with:
myVar = myOptionGroup.getValue()