Paradox 4: Problem with PushButton and ShowDialog 
Author Message
 Paradox 4: Problem with PushButton and ShowDialog

Hi,
According to PAL programmer's guide, the VarName in a PushButton should
be assigned the value represented by VALUE. But its not happening that way.
Consider... (I am listing only the lines which I need to)
            [...]
            OK
            Value "Proceed"
            Tag "Yes"
            To ButtonValue

            [...]
            CANCEL
            Value "Cancel"
            Tag "No"
            To ButtonValue

After the EndDialog, the ButtonValue will have the value *ONLY* if the
OK was selected and is null if CANCEL button was pushed. Why ButtonValue
does not get assigned when CANCEL is pushed? According to manuals it should
be! Any help would be greatly appreciated.

Thank you.
Malik



Fri, 02 Jun 1995 01:39:42 GMT
 Paradox 4: Problem with PushButton and ShowDialog

I don't know what says the US documentation but the french one
state that "the variable gets its value as soon as the dialog
is accepted".

As you can only accept a dialog with a OK button...

By the way, I can't figure a use for a CANCEL button. Got an
idea ?

 ----------------------------------------------------------------------------
 Jean-Claude Berger, JCBerger Developpement Formation (Free Lance Consultant)



Sat, 03 Jun 1995 07:28:58 GMT
 Paradox 4: Problem with PushButton and ShowDialog

Quote:
>I don't know what says the US documentation but the french one
>state that "the variable gets its value as soon as the dialog
>is accepted".

>As you can only accept a dialog with a OK button...

That's correct.

Quote:
>By the way, I can't figure a use for a CANCEL button. Got an
>idea ?

Think of it like SQL: ACCEPT == COMMIT and CANCEL == ROLLBACK.
--
                         --- Aahz (the *other* Dan Bernstein)

Hugs and backrubs -- I break Rule 6

"Would you like some toast?!"



Sun, 04 Jun 1995 03:08:12 GMT
 Paradox 4: Problem with PushButton and ShowDialog

Cancelling a ShowDialog rolls the PAL variables back to the value they
had before the ShowDialog started, including unassigned.  Use 'retval'
to determin if a dialog was accepted or cancelled.

Cheers



Mon, 05 Jun 1995 03:52:16 GMT
 Paradox 4: Problem with PushButton and ShowDialog
What CANCEL does on a pushbutton is "cancel" the dialog box.  Make
this one an "OK" button that gets the value of "Cancel" -- then
you'll have what you're looking for.
--
Joe McConnell  | Opinions expressed are the   | Don't blame me!  I voted for



Sat, 10 Jun 1995 01:34:32 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. Pdox45[DOS] - ShowDialog - PushButton Question?

2. SHOWDIALOG meets PushButton. PushButton loses. Help?

3. Paradox 4.5 DOS Help - ShowDialog Question

4. SHOWDIALOG wih Paradox 4.0

5. Paradox 4.0 SHOWDIALOG PICKARRAY bug

6. Paradox 4.0 ShowDialog CheckBoxes question

7. Pushbutton fax and forget from Paradox form?

8. Exit Paradox pushButton method with Dialogue-How To?

9. PdoxDOS SHOWDIALOG problem

10. Dos ShowDialog problem

11. PAL Pushbutton Problems

12. Pdox4.5 - SHOWDIALOG picture validation


 
Powered by phpBB® Forum Software