Gseos.Message
Previous  Top  Next

Message(strMsg, [wType=MSG_INFO], [strSource='User'], [wEvent=0])

The Message function logs a message to the GSEOS Message window.

ParameterDescription      

strMessageThe message to log.  
wTypeOptional, one of MSG_ERROR, MSG_INFO, MSG_WARN.  
strSourceThe message source, can be any string. Optional, defaults to 'User'.  
wEventThe event associated with the message. Optional, defaults to 0.  
      

Returns
None

Comments
If multiple messages with the same content from the same source are written in succession, only a message counter is incremented. This is useful if a function causes repeatedly the same error and prevents the message log from filling up too quickly.

Example
Print a message into the message window.

Gseos.Message("Hello, World")