ID : 9252
PrintMsg
Function
An icon that notifies that a string is output to the message output window and output to the TP status bar is displayed.
Syntax
PrintMsg string[, Icon [, caption]]
Guaranteed entry
- String
- Designate String type data.
- Icon
- Specify an icon being displayed in the dialog by Integer type data. This is omittable. This sets to "0" if it is omitted.
- Caption
- Specify character strings being displayed as caption in dialog by String type data. This is omittable. "PringMsg output" will be displayed if it is omitted.
| Number | Icon |
|---|---|
| -1 | None |
| 0 | ![]() |
| 1 | ![]() |
| 2 | ![]() |
| 3 | ![]() |
| 4 | ![]() |
Description
A string is output to the message output window. Also, a task icon is displayed in the status bar of the Smart TP to indicate that the string is output.
If "Display Print Msg" is turned ON, the dialog is displayed as well.
For about Display Print Msg, see Display Setting for Pendant.
Related Terms
Attention
- No use of separator is allowed.
- The message output window displays neither icons nor captions.
Example
'!TITLE "Display of Message"
' Display of "Hello World"
Sub Sample_PrintMsg
' Display "Hello World" on the message output window
PrintMsg "Hello World", 1, "Caption"
End Sub
ID : 9252






