For Programmers: Free Programming Magazines  


Home > Archive > Cobol > April 2005 > POWER COBOL V6









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author POWER COBOL V6
Gys Els

2005-04-21, 8:55 am

can anybody please give me a example of how to use the POW-ESCAPE-KEY in a
program.


--
Gys Els
Vir GHM Computer Data Systems
082 4969398
012 5460428
ghmcomputers@absamail.co.za



HeyBub

2005-04-21, 3:55 pm

Gys Els wrote:
> can anybody please give me a example of how to use the POW-ESCAPE-KEY
> in a program.


In the KeyUp, KeyDown, or KeyPress event, code:

IF POW-KEYCODE = POW-KEY-ESCAPE
(do something).

BUT - PowerCOBOL traps for the ESC key during debugging and interrupts
execution.* Your application will still see the escape key, but execution
stops and you have to mash [F5] to continue executing.

---------
*Why, oh why, they didn't use the "ScrollLock" key to control the debugging
process is a mystery.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com