I have a custom ArcPad form, which includes the geography tab. Users use this tab to update coordinates using the GPS. When user press OK in the edit form, I want to first check that they have not moved the coordinates of a point beyond a set distance. However, when I try to get the coordinates in VBS, from an event, it does not give me updated coordinates, only the coordinates that existed when the form was opened!
Here is the VBS Sub to grab the coordinates:
Sub SubCheckCoords() Dim msg Dim newXC, newYC, newZC newXC = EditForm.Fields.Shape.X newYC = EditForm.Fields.Shape.Y newZC = EditForm.Fields.Shape.Z msg = "NEW X "&newXC&" Y "&newYC&" Z"&newZC MsgBox(msg) End Sub
Does anyone have any pointers on how to get the current coordinates that are stored in the geography tab - before the form is closed?