A FormComponenet service implements both the XIndexContainer and XNameContainer interfaces. Normally a script programmer wants to use the control name to initially find the control, and the control reference from that point on. However, the XEventAttacherManager methods require the index of the control rather than the control reference.

If you have the control name, is there any way to get the index of that named control in the form. If you are forced to sequentially loop through the indexed container looking for a name match, you lose the efficiency of the hashed name lookup.

The XEventAttacherManager methods ought to take a FormComponent argument instead of an index so you could find the control in whatever manner works best for your script arguments.

--
--------------------------------------------------------
The Snake Pit - Development   www.TheSnakePitDev.com
Curtis Clauson                [EMAIL PROTECTED]
Proprietor

"Any sufficiently over-complicated magic is indistinguishable from technology." -- Llelan D.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to