Home > Available Help Files > PC-DMIS BASIC Language > Language Reference A – Z > Print Method > Example:
Current Help System: PC-DMIS BASIC (View Core Help)
Example:
Sub PrintExample ()
Dim Msg, Pi' Declare variables.
Let Pi = 4 * _Atn(1)' Calculate Pi.
Msg = "Pi is equal to " & Str(Pi)
MsgBox Msg' Display results.
Print Pi' Print the results in the Compiler Messages window
End Sub