Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@Ratslinger The event is generated by a control button in the main form. So the hint of @peterwt was what really solved the problem: using oForm = oEvent.Source.Model.Parent instead of only oForm = oEvent.Source. Your code with the while - loop is more elegant than mine, so I'll use that. Thank you very much! @peterwt Thank you as well for all your efforts! I learned quite a lot from this expamle besinde the fact that the problem is solved.

If you attempt to run the code from Macros - Run macro it will fail as there will be no oEvent argument. This is a good hint. I'm just at the beginning but once my macro library has grown a bit I'll consider that. The source of the event being the Button and the Form is the parent of the Button. I'm just wondering why I couldn't find something that important in the base handbook ...

@Ratslinger The event is generated by a control button in the main form. So the hint of @peterwt was what really solved the problem: using oForm = oEvent.Source.Model.Parent instead of only oForm = oEvent.Source. Your code with the while - loop is more elegant than mine, so I'll use that. Thank you very much! @peterwt Thank you as well for all your efforts! I learned quite a lot from this expamle besinde the fact that the problem is solved.

If you attempt to run the code from Macros - Run macro it will fail as there will be no oEvent argument. argument.

This is a good hint. I'm just at the beginning but once my macro library has grown a bit I'll consider that. that.

The source of the event being the Button and the Form is the parent of the Button. Button.

I'm just wondering why I couldn't find something that important in the base handbook ...