Select to view content in your preferred language

Retrieve OBJECTID from selected feature

2196
0
04-29-2010 05:32 AM
JayKappy
Frequent Contributor
How can I retireve the OBJECTID from the selected feature?  If I just dropped a new feature is the UNIQUEID created or is is created on save/update ?

I am doin this to get the attrobute values from the form but need the objectID as well.....

Dim objRS, objSelLayer, objEFPageOneControls3, objEditForm3
Set objSelLayer = Map.SelectionLayer
Set objRS = objSelLayer.Records


 objRS.Bookmark = Map.SelectionBookmark

 Set objEditForm3 = application.map.layers("Retaining_Walls").forms("EDITFORM")
 Set objEFPageOneControls3 = objEditForm3.Pages("page1").Controls

 Dim IDValue 
 IDValue = objEFPageOneControls3("txtUniqueID").Value
Tags (3)
0 Kudos
0 Replies