QTIPS - Interrupt Proof Error Messages

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 JAN 19922.11+EXPERTINTERRUPT, INPUT.CHAR, @PRIORITY.INT, ERROR, MESSAGE

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.

    Save_PI = @Priority.Int
    @Priority.Int = ""
    Call Msg("Fatal Error", "", "", "")
    @Priority.Int = Save_PI

(Volume 3, Issue 8, Page 9)

  • tips/revmedia/v3i8a7.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1