Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


PauseCheck UDF

Keywords: 	  pausecheck udf

How to Pause Execution and Continue:

For error checking, put the PauseCheck UDF at the top of your code, then toss in a few

PauseCheck()
lines in your main loop. So every time you hit a PauseCheck you will have a short opportunity to whack the display box and if you do, it will pause there.

If you are very unlucky you may have window focus issues to deal with. So put the PauseChecks() in places where it does not matter.

#DefineFunction PauseCheck()
x=Display(3,"Pause Opportunity","Click here to pause testing")
If x==1
   Pause("Testing Paused","Click OK to continue")
EndIf
Return(0)
#EndFunction



;test
Message(1,2)
PauseCheck()
Message(3,4)
PauseCheck()
Message(5,6)