Ed Leafe wrote:
On Jan 17, 2006, at 10:38 AM, Don Taylor wrote:

Why not use the control Name as the RegID?


Name is something every control has; it has to be unique among siblings. RegID, OTOH, must be unique among all objects within a form. It is a special 'tag' by which controls that need to reference each other can do so without having to worry about containership paths, name changes, etc. You only need RegIDs when the control needs to be referenced by another control, or when you want to auto-bind events to that control.

    Hope that helps explain the distinction...

Ok, but could you require that all Names be unique to a form so that you could use a Name for a RegID and then you cold drop the separate concept of both a Name and a RegId. More Pythonic? Do you lose anything by doing this?

I always have a hard time coming up with names for things that are pretty much the same thing from my perspective. So far I have cut and pasted the Name into the RegID property because I can't think of anything better.

Don.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to