| View previous topic :: View next topic |
| Author |
Message |
Helmut_Seidel General User

Joined: 30 Oct 2005 Posts: 13
|
Posted: Mon Jan 23, 2006 12:44 pm Post subject: close database-form |
|
|
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 |
|
 |
Helmut_Seidel General User

Joined: 30 Oct 2005 Posts: 13
|
Posted: Mon Jan 23, 2006 1:09 pm Post subject: |
|
|
ok, found an answer by myself:
| Code: | ' current Frame
oFrame = StarDesktop.getCurrentFrame()
' close Frame
oFrame.dispose() |
thhanks again |
|
| Back to top |
|
 |
Seb33300 Power User

Joined: 07 Feb 2006 Posts: 63 Location: France
|
Posted: Tue Feb 14, 2006 1:02 am Post subject: |
|
|
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 |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Tue Feb 14, 2006 10:28 am Post subject: |
|
|
Have you tried something like:
| Code: | | oForm.moveToInsertRow() |
_________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
|