At 10:21 AM 8/27/2003 -0400, Thomas J Cimicato wrote:


Using a variable dummy form, how can you determine if the user
hit the 'Quit' button. Does that need to be an eep or is there a
way to know what button was pushed without using an eep for
each button.


Thom,

Ask and you shall receive!

Follow these simple steps:

01. Create an EEP, for example: Button.EEP.

        -- Button.EEP
        SET VAR VButton = .%1
        CLOSEWINDOW
        RETURN

02. Use the following properties for "Quit" button.

        Push Button Object Properties:
        Button Text: Quit
        Button Type: Custom
        EEP: Button.EEP USING 99

03. In your command file:

SET VAR vButton INTEGER = NULL

EDIT USING FormName ...

        IF vButton = 99 THEN
           GOTO Done
        ELSE
        -- Do what you have to do
        ENDIF

        LABEL Done
        CLEAR VAR varnames
        RETURN

For complete details and samples, take a look at "NewStuff" demo
bundled with R:BASE 6.5++ for Windows (Build:1.866xRT03).

Have Fun!

Very Best R:egards,

Razzak.



Reply via email to