ActivityConsolePrint

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > UserInterface >

ActivityConsolePrint

Description

The command appends a passed message to the existing ActivityConsole content.

Syntax

call DBWShell("ActivityConsolePrint message")

Parameters

message

The string to add to the existing Activity Console content.

Remarks

If any space is present in message string, it must be coded using the replace(...," ","|") function.

See also

ActivityConsoleHide
ActivityConsoleCleanAll
ActivityConsolePrint

Example

Sub main()

 DBWInit(TRUE)
 DBWShell("ActivityConsoleCleanAll")
 msg1 = replace("this is a message"," ","|")
 msg2 = replace("that has been written"," ","|")
 msg3 = replace("on the console"," ","|")
 DBWShell("ActivityConsolePrint " & msg1)
 DBWShell("ActivityConsolePrint " & msg2)
 DBWShell("ActivityConsolePrint " & msg3)
 DBWMsgBox "The console will now be closed ..."
 DBWShell("ActivityConsoleHide")
End Sub

ActivityConsole02