OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Problem with a macro closing a form

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Seb33300
Power User
Power User


Joined: 07 Feb 2006
Posts: 63
Location: France

PostPosted: Thu Mar 16, 2006 7:28 am    Post subject: Problem with a macro closing a form Reply with quote

I make severals "menu" forms wich can be opened and closed clicking on a buttom

but sometimes when a I click on a PushButton to close a form, it close it but I got the message :
Quote:
Owner instance already closed. Call was rejected !


My macro to close a form is :
Code:
sub FermerFenetre

   oFrame = StarDesktop.getCurrentFrame()  ' current Frame
   oFrame.dispose()                  ' close Frame

end sub


It's only when I try to close a form opened by another form (clicking a pushbuttom) that the message apear
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group