In order for this site to work correctly, and for us to improve the site, we need to store a small file (called a cookie) on your computer.
By continuing to use this website, you agree to our cookies and privacy policy.
  
Home page Home page Home page Home page
Pixel
Pixel Header R1 C1 Pixel
Pixel Header R2 C1 Pixel
Pixel Header R3 C1 Pixel
Pixel

QTIPS - Interrupt Proof Error Messages

Cameron Christie of McAuley Consultants makes the point that it can be useful to prompt the user for input using INPUT.CHAR without allowing them to access TCL or record macros et al. He points out that the simplest way of achieving this is to save off the contents of @PRIORITY.INT, null @PRIORITY.INT then invoke INPUT.CHAR. When control returns to the calling program, restore @PRIORITY.INT.

This technique could be extended to displaying error messages on screen E.G.


0001        Save_PI = @Priority.Int
0002        @Priority.Int = ""
0003        Call Msg("Fatal Error", "", "", "")
0004        @Priority.Int = Save_PI

(Volume 3, Issue 8, Page 9)
Pixel
Pixel Footer R1 C1 Pixel
Pixel
Pixel
Pixel