Paradox 4.0 PAL Wait Bug ? 
Author Message
 Paradox 4.0 PAL Wait Bug ?

I think I have found a bug in Paradox 4.0 using WAIT.  Can anyone confirm
this?

It appears that if an event-driven form of WAIT is used before a key-press
(old-style) form of WAIT, the keypress form of the WAIT command will not
correctly display the contents of its PROMPT (however its message is fine).

PROMPT commands EXTERNAL to the old form of WAIT appear to be okay.

For example:

PROMPT "THIS IS A TEST"
WAIT WORKSPACE
   PROC "MyWaitProc"
   KEY "F2"
ENDWAIT

At this point, the prompt should be automatically cleared by PAL...

WAIT WORKSPACE
   PROMPT "YOU DO NOT SEE ME"
   MESSAGE "YOU DO SEE ME"
UNTIL "F2"

When the 2nd WAIT is executed, the FIRST prompt ("THIS IS A TEST") will
be the prompt on screen.  One solution is to move the PROPMT out of the
WAIT ... UNTIL, but this requires an empty PROMPT after the WAIT to clear
the prompt line.

So, has anyone else seen this, or am I making a silly mistake?  Of course,
there is no problem is one ALWAYS uses event driven WAIT's...

    -Todd



Sun, 06 Aug 1995 23:56:56 GMT
 Paradox 4.0 PAL Wait Bug ?


Quote:

>I think I have found a bug in Paradox 4.0 using WAIT.  Can anyone confirm
>this?

>It appears that if an event-driven form of WAIT is used before a key-press
>(old-style) form of WAIT, the keypress form of the WAIT command will not
>correctly display the contents of its PROMPT (however its message is fine).

>PROMPT commands EXTERNAL to the old form of WAIT appear to be okay.

This is old 3.0/3.5 behavior.  In order to clear a stand-alone PROMPT,
and force PAL to use the one inside WAIT...UNTIL, you need to place
PROMPT with no parameters on a line by itself.
--
                         --- Aahz (the *other* Dan Bernstein)

Hugs and backrubs -- I break Rule 6

{*filter*} vanilla {*filter*} het



Mon, 07 Aug 1995 03:03:31 GMT
 Paradox 4.0 PAL Wait Bug ?

Quote:
>I think I have found a bug in Paradox 4.0 using WAIT.

I would be very carefull in calling it a bug. I think its the way Paradox
is designed.

You should issue a PROMPT command without any parameters between two Waits
in order to give up control of PROMPT and Paradox regain control of it. I
am copying your example below with the fix.

PROMPT "THIS IS A TEST"
WAIT WORKSPACE
   PROC "MyWaitProc"
   KEY "F2"
ENDWAIT

PROMPT

WAIT WORKSPACE
   PROMPT "YOU DO NOT SEE ME"
   MESSAGE "YOU DO SEE ME"
UNTIL "F2"

It works fine.

hope it helped...
--nasir



Thu, 10 Aug 1995 03:11:07 GMT
 
 [ 3 post ] 

 Relevant Pages 

1. Paradox Pal to Paradox for Windows Object Pal

2. Paradox 4.0 PAL Question

3. Is it possible under PAL (Paradox 4.0)?

4. BEST PAL compiler for Paradox 4.0

5. Paradox 4.0 PAL questions - tricky

6. Can I Use PAL and Not Object PAL on Paradox for Win 5.0 I need 3.5

7. Viewing Report under Wait (Paradox 4.0)

8. Calling GRAPH from wait proc...(Paradox 4.0)

9. PAL, Wait, & Memo Editor help needed

10. converting paradox dos script to paradox (object pal) windows script

11. BUG [/feature] in Paradox 4.0

12. Paradox 4.0 Report bug?


 
Powered by phpBB® Forum Software