Am Donnerstag, den 31.05.2007, 18:48 +0200 schrieb Mathias Röllig:
> The problem is, that in my opinion i don't need a listener - if i have
> already understood the sense of it. A listener should execute anything
> if a special event is initiated. And this should be every time the event
> is applied.
> 
> By my macro should only wait once, if the form is not loaded.
> 
> <do anything>
> If oForm.isLoaded
> <do this>
> Else
> <waiting for oForm.isLoaded>
> <do this>
> End If
> 
> I can't see how i can implement the waiting with a listener.
> So i should add the listener, wait for the event, and after the event i
> must remove the listener. But ... #-|

You can use a global boolean flag for remembering that the first load
cycle has been done. In the following listener notifications your
listener checks it and does nothing.

if not(first_load_done)
        ... do what has to be done
        first_load_done = TRUE
else
        exit sub
endif

But it has to be global for surviving the full time of the office
session.

Although I don't understand why it has to be done this way, doesn't
saving and going to the next new record has to act, too?

HTH,
Marc


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

Reply via email to