In addition to Javier's slick trick you can do this as well. I'm assuming that just about everyone uses a 'mainmenu' of some sort. So let's say you create a custom form action in 'mainmenu' called 'dothis'. You can call this form action from another form by issuing the following PROPERTY RBASE_FORM_ACTION mainmenu|dothis ' '
Caveat. This will only work if the mainmenu has not been closed but is still open in the background. Jan -----Original Message----- From: "Javier Valencia" <[email protected]> To: [email protected] (RBASE-L Mailing List) Date: Thu, 28 May 2015 13:09:52 -0500 Subject: [RBASE-L] - RE: Forms: Custon Form Action James, You can call a Custom from action only from within the form where it is defined. However, there are ways where you can store the code you want and call from anywhere you want. For example. I have a set of Administrative tasks that I like to run from within many forms and thus I created a table where I store the code and then I called as needed. The table structure is as follows: Table: IntCmd Descr: Table to Store Internal Commands for EEPs No. Column NameAttributes --- ------------------ ------------------------------------------------------ 1 CmdNameType: TEXT 18 NOT NULL Consrnt: PRIMARY KEY 2 CmdDataType: LONG VARCHAR NOT NULL Current number of rows:9 I have currently 9 universal command stored. I assign a name to the code and store it in the CmdName column and store the actual code in the CmdData column, then I can call that code from anywhere using the command RUN SELECT CmdData FROM IntCmd WHERE CmdName = 'RemoteAdmin' In this case the name of the code I want to run is “RemoteAdmin” minus the quotes of course. It work very well and I believe it is what you are looking for. Javier, Javier Valencia, PE O: 913-829-0888 H: 913-397-9605 C: 913-915-3137 From:[email protected] [mailto:[email protected]] On Behalf OfJames Bentley Sent: Thursday, May 28, 2015 11:16 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Forms: Custon Form Action Within a form you can define eeps for the following events: * On Before Start EEP * On After Start EEP * On Before Design Action * On Close Designer Action my question is if I have defined a Custom Form Action Say "DefFormVariables" Are there restrictions on when I can use PROPERTY RBASE_FORM_ACTION DefFormVariables ' ' I have several forms that require extensive SET VARIABLE statements. I would like to consolidate them into a Form Custom Action and call them in then above mentioned EEPs. I can not find in the Help Documentation a mention of restrictions on using a PROPERTY RBASE_FORM_ACTION command. Any help would be appreciated. Jim Bentley, American Celiac Society 1-504-737-3293

