[Solved] Close OpenBase Forms

Creating a macro - Writing a Script - Using the API

[Solved] Close OpenBase Forms

Postby xavlegrav » Thu Feb 07, 2008 4:01 pm

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.
xavlegrav
 
Posts: 2
Joined: Thu Feb 07, 2008 3:37 pm
Location: France

Re: Close OpenBase Forms

Postby mobi-doc » Thu Feb 07, 2008 7:41 pm

try to close the Frame instead with
ThisComponent.CurrentController.Frame.close(FALSE)
mobi-doc
 
Posts: 59
Joined: Wed Nov 21, 2007 11:29 am
Location: Greece

Re: Close OpenBase Forms

Postby xavlegrav » Fri Feb 08, 2008 11:16 am

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 !
xavlegrav
 
Posts: 2
Joined: Thu Feb 07, 2008 3:37 pm
Location: France


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 6 guests