Current Help System: Tutor Translator (View Core Help)

### Output to Printer

The PRN (Varlist) command is translated as an assignment command in which all the variables in the varlist are converted to string and concatenated to the other variable types (if any). The resulting string (PRN_STRING) is passed to the Tutor_prn subroutine that emulates the PRN output.

P RN translates to è

=CALLSUB/TUTOR_DEV_ENDIS,TutorSub.PRG: E.OFMT,2,1,,

NOPRN translates to è

=CALLSUB/TUTOR_DEV_ENDIS,TutorSub.PRG: E.OFMT,2,0,,

PRN (”r;THIS IS A STRING”) translates to è

ASSIGN/PRN_STRING = " THIS IS A STRING"
=CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

PRN (INT_VAR) translates to è

ASSIGN/PRN_STRING = FORMAT(”r;%d”, E.INT_VAR)
=CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

PRN (REAL_VAR) translates to è

ASSIGN/PRN_STRING = FORMAT(”r;%f”, E.REAL_VAR)
=CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

PRN (VECT_VAR) translates to è

ASSIGN/PRN_STRING = FORMAT(”r;%f %f %f”, E.VECT_VAR)
=CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

The same for coordinate variables.

PRN (BOOL_VAR) translates to è

ASSIGN/PRN_STRING = E.BOOLVAL(E.BOOL_VAR)
=CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

PRN (”r;INT VAR = ” , INT_VAR,”; REAL VAR = ”,REAL_VAR,”; VECT VAR = ”,VECT_VAR ) translates to è

ASSIGN/PRN_STRING = "INT_VAR = " + E.INT_VAR + "; REAL_VAR = " + FORMAT("%f", E.REAL_VAR) + "; VECT_VAR = " + FORMAT("%f %f %f", E.VECT_VAR) =CALLSUB/TUTOR_PRN,TutorSub.PRG: E.OFMT, PRN_STRING,,

Where the values are defined as:

- INT_VAR is a variable of type integer.

- REAL_VAR is a variable of type Real.

- VECT_VAR is a variable of type Vector.

PRN_FF translates to è

FORMFEED/