PRINT

PRINT E

WRITES THE EXPRESSION E INSIDE A SYSTEM OBJECT

  • Type: Command
  • Parameter: 1
  • Group: Reference

ACTION

The command PRINT E writes the value of expression E into the "print targeted" system object.

By default, PRINT writes into FORM number 0, but it can write into the system object number N if the command PRINT_TARGET_IS N has been performed.

The objects which can be used are : SCENE3D, EDIT, MEMO, COMBO, FORM, LIST, PICTURE.

PRINT without expression E is a "carriage return".

SYNTAX: PRINT S

  • S = string expression or variable name.

USE

  • The command PRINT is used to display on a system object the value of any string or arithmetic expression.

ERROR

  • If E is not a correct (string or arithmetic) expression.

EXAMPLE

rem EXAMPLE 1

dim a

a=1

print a

rem -------------

rem EXAMPLE 2

dim b$

b$="abC"+"zzz"

print b$

rem -------------

rem EXAMPLE 3

dim a

a=1

print "the number is "+str$(2*a)

SEE ALSO

PRINT_LOCATE

PRINT_X_LOCATE

PRINT_Y_LOCATE

PRINT_TARGET_IS