ArcPad Scripting Object Model Reference > ArcPad Scripting Samples > Get Selected Feature |
Description:
How to use:
JScript
Copy Code | |
---|---|
function GetSelected() { var pRS; if (Map.SelectionLayer == null) return; pRS = Map.SelectionLayer.Records; pRS.Bookmark = Map.SelectionBookmark; Application.MessageBox (pRS.Fields(1).Value.toString()); pRS = null; } GetSelected(); |
VBScript
Copy Code | |
---|---|
Sub GetSelected() Dim pRS If (Map.SelectionLayer Is Nothing) Then Exit Sub Set pRS = Map.SelectionLayer.Records pRS.Bookmark = Map.SelectionBookmark Application.MessageBox CStr(pRS.Fields(1).Value) Set pRS = Nothing End Sub Call GetSelected() |