VIEWTEXT

Purpose:

Displays text in a dialog box.

Syntax:

VIEWTEXT("text", "title")

"test"

-

A string, the text to display

"title"

-

Optional. A string, the title to display. Defaults to "Message".

Example:

viewtext("Hello World")

 

displays "Hello World" in a dialog box.

Example:

text = strescape("Line 1\nLine 2\nLine 3");

viewtext(text, "Multiline");

 

displays a dialog box with the title "Multiline" containing the text:

 

 Line 1

 Line 2

 Line 3

Example:

viewtext(disp(rand(10)))

 

displays the values of a 10x10 random array in a dialog box.

Remarks:

See VIEW to display an SPL file.

 

See VIEWFILE to display a text file.

 

See VIEWHTML to display HTML pages.

 

See SHELLEXECUTE to process a file with a system defined application.

See Also:

DISP

ECHO

MENUFILE

SHELLEXECUTE

SPRINTF

STRESCAPE

VIEW

VIEWFILE

VIEWHTML

VIEWPROP

WHICH