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 Button Form

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
JoaoLuis
Guest





PostPosted: Wed Jun 02, 2004 12:08 am    Post subject: Close Button Form Reply with quote

Who can i create a button that when is pressed the current form is closed??

Joao Luis
Back to top
Derrick_10
Newbie
Newbie


Joined: 21 Dec 2011
Posts: 1

PostPosted: Thu Dec 22, 2011 5:46 am    Post subject: Reply with quote

I can't beleive this post ahs no answer!!!

Is Open Office really so poor that a simple problem like this is insoluble?

So much for Camerpn's suggestion that the NHS move to Open Source. That would be total lunacy.
Back to top
View user's profile Send private message
Greengiant224
OOo Enthusiast
OOo Enthusiast


Joined: 05 Jun 2010
Posts: 107
Location: All Over The World

PostPosted: Thu Dec 22, 2011 11:25 am    Post subject: Reply with quote

JoaoLuis posted

Quote:

Who can i create a button that when is pressed the current form is closed??


Derrick_10 posted
Quote:

I can't beleive this post ahs no answer!!!

Is Open Office really so poor that a simple problem like this is insoluble?

So much for Camerpn's suggestion that the NHS move to Open Source. That would be total lunacy.


There are quite a number of macros to close a form. you obviously did not look far enough. A forum search would bring up a myriad of possibilities.

Here's one I came across just a few seconds ago, enjoy.


Code:

Sub close_form(Event As Object)
    Dim dbdoc As Object
    Dim formdoc As Object
       
    'IF MACRO SAVED OUTSIDE DATABASE (DOCUMENT)
    formdoc=Event.Source.Model.Parent.Parent.Parent
    dbdoc=formdoc.Parent
       
    'IF MACRO SAVED INSIDE DATABASE (DOCUMENT)
    'dbdoc=ThisDatabaseDocument
    dbdoc.FormDocuments.getByName("<your form name here>").close()

End Sub


You will need to bind this to an onEvent structured button
_________________
Greengiant 224

Linux 2.6.38, KDE 4.9.2, LibreOffice v 3.5.x (Java 1.6.35) utilising HSQL v1.8 & v2.3.+, MySQL, PostgreSQL, SQLite
+ Blood, Sweat and Tears (Application, Determination and Perseverance)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base 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