Usermessage Well Kept Secret? 追蹤

0

Though I see the UserMessage function in the VBScript wizard, I can't seem to find a reference to it anywhere in the documentation (other than the "what's new" docs).

 

What are the valid reason codes? Should I stay away from it, and just use MsgBox?

1 意見

0
Avatar
Ian Cummings
版主
評論操作 永久連結

This allows you to raise a user defined application message, which can in turn be logged to the BarTender System Database, or handled in exception handling code.  The syntax to call this function is like the below example:

 

Call UserMessage(btMsgSeverityWarning, "Ooops you did something silly, but never mind it's not too bad.")

 

In my test this gave me a #9902 application message.

 

There are three levels of message severity as below:

 

btMsgSeverityError 
btMsgSeverityInformation 
btMsgSeverityWarning

登入寫評論。