| Stonefield Query SDK |
| GetValuesForField |
Syntax
GetValuesForField(FieldName as String, Operator as String [, Values as Collection]) as Object
Parameters
FieldName
The name of the field (aliased with the table name) to get the value for.
Operator
The operator to use; one of the following:
Values
A collection of values used as the default values for the dialog. Use the GetValuesCollection method to create the collection and its AddItem method to add the default values. Supply two values for the between and not between operators, up to ten values for the is one of and is not one of operators, and only one value for the rest of the operators. This parameter is optional; if it isn't specified, blank values are used as defaults.
Return Value
A collection of value objects. A value object has a single property, Value, which contains the value the user entered for the field value. If the user chooses Cancel rather than entering a value, the collection Count property is 0. Otherwise, the collection contains two members for the between and not between operators, up to ten members for the is one of and is not one of operators, and one member for the others.
Example
See Select for example code.
See Also
DataEngine Object | GetValuesForParameter | Select
| Last Updated: 06/08/10 |