Select to view content in your preferred language

ArcPad Select Method

710
2
06-07-2012 11:10 PM
JamesNunn
Deactivated User
Hi

I'm trying to create a tool which will select a feature (point) by using a bookmark which has been previously set in another tool.

From the Developer Help:
object.Select ( Layer [,Bookmark] )


Doing:
Map.Select ("Buildings", Application.UserProperties("bdgbookmark"))

results in an error for using parentheses in a sub.

Map.Select "Buildings", Application.UserProperties("bdgbookmark")

just tells me there is a type mismatch.

What am I missing?
Tags (3)
0 Kudos
2 Replies
ThaiTruong
Deactivated User
Hi James,

have you tried to print Application.UserProperties("bdgbookmark") to see what value is returned?!
0 Kudos
SuzanneAngelo
Emerging Contributor
I had this same problem today.  Apparently ArcPad is expecting a Layer object, not just a string.  So, for the example above...
Map.Select Map.Layers("Buildings"), Application.UserProperties("bdgbookmark")

(Assuming that that UserProperty is of type Long.)
0 Kudos