ArcPad Scripting Object Model
ToArray Method
See Also  Send comments on this topic.
FieldNames
Optional. A Boolean that specifies whether field names are included in the Array.
MaxRecords
Optional. A Long that represents the maximum number of records to return.
Recordset Collection : ToArray Method

Glossary Item Box

Description

Returns the RecordSet contents as a two dimensional array.

Syntax

object.ToArray( [FieldNames] [,MaxRecords] )

Parameters

FieldNames
Optional. A Boolean that specifies whether field names are included in the Array.
MaxRecords
Optional. A Long that represents the maximum number of records to return.

Return Type

Array

Remarks

The Array returned is two dimensional. The first dimension contains the rows of the RecordSet and the second dimension contains the columns.
If the FieldNames argument is True (the default), row 0 contains the field names. If the FieldNames argument is False, row 0 contains the first row of data.

See Also

© 2013 All Rights Reserved.