[dabo-users] RegID with strings

Author: Mike Mabey

Posted: 2009-06-26 at 16:34:40

Hi all,

Is it possible to access an object with its RegID using a string? For

example, say I had a list of strings which corresponded several RegIDs in

the app, could I do something like this:

ids = ['dateText', 'name', 'location']

for x in ids:

self.Form.getElementByRegID(x).Value = someVal

??

Sorry, sometimes I can't help but think in terms of JavaScript.

Thanks,

Mike M.

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

©2009 Mike Mabey