Appends expressions converted to strings to the Log window.
Print [ Using sFormatSpec ; ][ [ Expression ] [ , ] [ ; ]... ]
The Print statement is used to print text to the Log window.
If the Print statement is not ended with a comma (,) or a semicolon (;) the print position is moved to the beginning of a new line after ATEasy outputs the string. A new line can also be generated by embedding the characters "\r\n" or "\n" inside a string Expression.
If the Log window is in HTML mode (PlainText=False) a new line "\r\n" will generate <br> tag . Adding the <br> was done since ATEasy v8 148c, prior versions did not generate <br> and adding a <br> to the string was required in order to generate a new paragraph.
A comma can be used to move the print position to the beginning of the next Tab, which is the next position that can divided by 15.
A semicolon can be used as a separator between Expressions without moving the print position.
The Expression can be a string-exp or a simple (not array) numeric-exp. Each numeric-exp is converted to a string that contains a leading space if the number is positive and the minus (-) if the number is negative. The format of a converted numeric-exp to string is the same as the Str function (with iBase as 10).
The optional Using clause is used to format numeric values. The sFormatSpec is a string-exp that has the same syntax as the sFormatSpec used by the Format function. After the semicolon (;) in the Using clause, only numeric-exps are allowed as Expressions.
Print "ATEasy";
Print " is"; " Easy"
Print 4*5,
Print "AT"; "Easy"
!This will print:
!ATEasy is Easy
!20 ATEasy
Print using "###.###"; 1.45
Print using "###.###"; -1.45
Print using "###.###"; -99.4523
Print using "###.###"; 2344.9549
Print using "###.###E###"; 2344.9549
!This will print:`
! 1.450
! -1.450
!-99.452
! 2344.955
! 23.450E+02