Customize the Open Systems Display

You can use a macro to change the dimensions (rows and columns) of an Open Systems display.

This sample applies only to Open Systems terminals.

To run this sample

  1. In an Open Systems session, on the Tools tab, open the VBA Editor and create a new code module.
  2. Paste this sample into the module code window and then run the sample.
    Sub ChangeDisplay()           
        'Set the number of rows and columns
        ThisScreen.DisplayColumns = 100
        ThisScreen.DisplayRows = 40
    End Sub
The valid range for the number of rows is 24 - 4000. The valid range for the number of columns is 80 - 999.

 You can run this macro automatically when certain strings are returned by the host or when specific events occur (see Navigating Sessions and Using InfoConnect Events).

See Also