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

close database-form

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


Joined: 30 Oct 2005
Posts: 13

PostPosted: Mon Jan 23, 2006 12:44 pm    Post subject: close database-form Reply with quote

hello everybody,

i'm sorry for asking a second question.

im trying to close a database-form by using this code:

Code:
oForm = thisComponent
oForm.dispose()


the effect is, that the database-form itself is closed but the writer-application, which encapsulates the form, remains open.

can anybody tell me how to close both?

thank you again

helmut
Back to top
View user's profile Send private message
Helmut_Seidel
General User
General User


Joined: 30 Oct 2005
Posts: 13

PostPosted: Mon Jan 23, 2006 1:09 pm    Post subject: Reply with quote

ok, found an answer by myself:

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


thhanks again
Back to top
View user's profile Send private message
Seb33300
Power User
Power User


Joined: 07 Feb 2006
Posts: 63
Location: France

PostPosted: Tue Feb 14, 2006 1:02 am    Post subject: Reply with quote

Hello,
I got a mcro where a Save a record and update another table clicking on a buttom and I close the form using this macro at the end of my macro

But if I re-open the form I can see the text wich I writte juste before I close the form
So how to empty this form ?

I can empty all the controls but I don't manage tu use setText proprieties

Anyone can help me tu use it or if you have a better idee
Back to top
View user's profile Send private message Send e-mail
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3655
Location: Columbus, Ohio, USA

PostPosted: Tue Feb 14, 2006 10:28 am    Post subject: Reply with quote

Have you tried something like:
Code:
oForm.moveToInsertRow()

_________________
--
Andrew Pitonyak
http://www.pitonyak.org/oo.php
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
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