Select to view content in your preferred language

Loop through Controls

582
2
02-24-2012 06:03 AM
MatthewMurray1
Occasional Contributor
I was just wondering if there is a way to loop through all controls on a form without knowing the control name. I would just like to use the index.

thanks
Tags (3)
0 Kudos
2 Replies
GarethWalters
Deactivated User
You can use the ThisEvent object. Check out the ArcPad studio help on this there is an example that you could adjust for your needs. Let me know if you need anymore info.

Cheers,

Gareth
0 Kudos
RobChouinard
Frequent Contributor
Yes you can. Here is a snippet of code I use:

Dim objPg, Cntl, objFrm
set objFrm = ThisEvent.object
set objPg = objFrm.pages("page1")

For each Ctrl in objPg.Controls
     ...
Next
0 Kudos