ArcPad Scripting Object Model
AddNew Method
See Also  Send comments on this topic.
pShape
Optional. A variable declared as a Geometric object.
Recordset Collection : AddNew Method

Glossary Item Box

Description

Creates a new record and adds it to the RecordSet.

Syntax

object.AddNew ( [pShape] )

Parameters

pShape
Optional. A variable declared as a Geometric object.

Remarks

Call the AddNew method to create and add a new record to the RecordSet. After you set the values of the new record's fields, call the Update method to save the changes and add the record to the RecordSet. You must call the Update method before moving to another record or your changes will be lost without any warning. After you call the AddNew method, the new record becomes the current record and remains current after you call the Update method. When using the AddNew method to add features to a shapefile RecordSet, you can use the optional Shape argument to specify the geometry of the feature being added. If you use this approach, the geometry of the shape will automatically be reprojected to match the coordinate system of the RecordSet.

Example

See Also

© 2012 All Rights Reserved.