Select to view content in your preferred language

VB Scripting Issue for ArcPad

734
1
03-11-2011 06:38 AM
BrendanTierney
New Contributor
I am trying to take a layer definition file, using the input values for A and B on the ArcPad form, and autopopulate the C field in the shapefile (a read only on the form).

Simple equation is:  C = A + B
All fields are Doubles.

I need this run each time a feature is added and/or edited in the shapefile.
I am not very proficient with ArcPad Studio yet, so any assistance is appreciated.
Tags (3)
0 Kudos
1 Reply
JasonTipton
Frequent Contributor
Sub FeatAdded
Set objRS = Map.Selectionlayer.Records
objRS.Bookmark = ThisEvent.Bookmark
objRS.Fields("C").value = objRS.Fields("A").value + objRS.Fields("B").value
objRS.Update
End Sub


call
onfeatureadded=FeatAdded
onfeaturechanged=FeatAdded
0 Kudos