The Get Method of the ODAX ActiveX Object retrieves the column value specified from the current result set.
Get (Method of the ODAX ActiveX Object) Syntax var result = object.Get(strFieldName);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value strFieldName String Field Name to be retrieved N/A
Return Values
Name Description Result Returns the value from the specified field in the current result set record. Otherwise a negative error value would be returned. (Please Refer to Error Codes for More Detail)
Examples
The following javascript gets the column 'field1' from the resultset:
<script> var ax = new ActiveXObject("CeODAX.ODAX"); var count = ax.Select('SELECT * FROM \'\\application\\test.xml\';', ',', false); var colval = ax.Get("field1"); </script>
Copy example to clipboard
Remarks
GeneralThere must a valid result set in order to successfully execute this command, otherwise the operation will result in an error. In a CSV file, if the firstrow is set to true then strFieldName should have the field name else if firstrow is set to false then Column1 ... ColumnN literals should be used to retrieve the appropriate filed values.
Additional Information
Supported Platforms Windows Mobile, Windows CE Persistence Runs immediately. Min. Requirements None.