CeODAX.Get Method

PocketBrowser 3.x API

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);

ParametersW Toggle 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

axReturns Toggle 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 Toggle 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 Copy example to clipboard

Remarks Toggle Remarks

General
There 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.


Info Toggle Additional Information

Supported Platforms Windows Mobile, Windows CE
Persistence Runs immediately.
Min. Requirements None.