[Solved] Close OpenBase Forms

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
xavlegrav
Posts: 2
Joined: Thu Feb 07, 2008 3:37 pm
Location: France

[Solved] Close OpenBase Forms

Post by xavlegrav »

Hello everybody,

Here is my problem: I'm using a OpenBase file : xxx.odb. In this file, there are some formulas. From one of these forms, I'm opening another one with macro. This is working good. But now, I would like to find the macro to close this opened form.
I've tryed something like :

myForm = ThisComponent
myForm.close (True)

but it doesn't work.

If someone has informations about that, I would be very grateful!!.. :D

Xavier.
Last edited by xavlegrav on Fri Feb 08, 2008 11:17 am, edited 1 time in total.
mobi-doc
Posts: 59
Joined: Wed Nov 21, 2007 11:29 am
Location: Greece

Re: Close OpenBase Forms

Post by mobi-doc »

try to close the Frame instead with
ThisComponent.CurrentController.Frame.close(FALSE)
xavlegrav
Posts: 2
Joined: Thu Feb 07, 2008 3:37 pm
Location: France

Re: Close OpenBase Forms

Post by xavlegrav »

mobi-doc wrote:try to close the Frame instead with
ThisComponent.CurrentController.Frame.close(FALSE)
Thank you mobi-doc, it works!...
Sorry, my question was maybe silly, but I'm a begginer :(

Thank you for this forum, it's very helpful !
Post Reply