Show/Hide Toolbars

XSharp

NoteThis command is defined in a header file and will be preprocessed by the X# preprocessor to a function call. If you disable the standard header (-nostddefs) files then this command will not be available. If you tell the compiler to use a different standard header file (-stddef ) then this command may also be not available

Purpose

Turn the screen display on/of

Syntax

SET CONSOLE ON | off | <lToggle>

Arguments

<lToggle>A logical expression which must appear in parentheses. Instead of the logical expression, the option ON can be specified for the value .T. (true) or OFF for the value .F. (false). When .T. or ON is specified (the default value), all output is displayed on the screen. If the setting is set to OFF, output on the screen using commands like ? or ?? is suppressed.

Description

The command SET CONSOLE deactivates or activates output of characters on the screen. This includes commands like ? and functions like QOut() or QQOut(), which always begin output at the current cursor position.

 

When SET CONSOLE is set to ON, output is displayed on the screen. There can also be parallel output to a file (command SET ALTERNATE).

Examples

 

FUNCTION Start
    USE Customers NEW
    SET ALTERNATE TO CustomerList.TXT
    SET CONSOLE OFF
    DO WHILE .NOT. Eof()
        ? Customers->LastName, Customers->FirstName
        ? Customers->Street
        ? Customers->City + ",", Customers->State, Customers->Zip
        ?
        SKIP
    ENDDO
    SET ALTERNATE TO
    SET CONSOLE ON
    USE
 
  RETURN

 

 

Assembly

XSharp.RT.DLL

See Also

SetConsole(), SET ALTERNATE