xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

TEXT

Displays a block of literal text.

Syntax

TEXT [TO PRINTER] [TO FILE <fileName>]
   <text>
ENDTEXT

or

TEXT INTO <varName>
   <text>
ENDTEXT

Arguments

TO PRINTER
The text is additionally output to the printer.
TO FILE <fileName>
The text is additionally output to the file <fileName>. It can be specified as a literal file name or as a character expression enclosed in parentheses. The default extension is TXT.
INTO <varName>
This is the symbolic name of the variable to assign <text> to.
<text>
This is a literal text block enclosed in TEXT and ENDTEXT. The text is output to the screen and displayed exactly as written in the PRG source code file.

Description

The TEXT...ENDTEXT command outputs a block of literal text to the console. Output can be directed additionally to a printer or a file. When SET CONSOLE is set to OFF, the screen output is suppressed.

ALternatively, the text is assigned as character string to the variable <varName> when the INTO option is used.

Info

See also:? | ??, @...SAY, MLCount(), MemoLine(), SET ALTERNATE, SET CONSOLE, SET DEVICE, SET PRINTER
Category: Console commands
Source:rtl\text.prg
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe