Interactive I/O

In this section:

Reading numbers or character strings from a window under ClearWin+ is very similar to reading data in a traditional program using READ. However, it is important to remember that each variable must be given an initial value before the window is created since a default value will appear as soon as the window is displayed.


Checkmate can be used to flag an error when a variable that has not been given a value is used.

Those controls that allow the user to edit text in a box (such as %rd (Edit Integer)) can also transfer text to/from the clipboard using the special ClearWin+ call-back functions 'CUT', 'COPY', 'PASTE', defined in the standard call-back functions described in Standard call-back functions.



Copyright © 1999-2024 Silverfrost Limited