System::MessageBox

System::MessageBox method creates and displays a window that contains an application-supplied message and caption.

This method requires user permissions to be set for PROMPT_USER_SECURITY_EXCEPTIONS.

public System::MessageBox(
   WString Message,
   WString Title = TVariable::None
   Integer Type = TVariable::None
:  Integer Result
);

Parameters

Messagean Unicode WString containing the message to be displayed.
Titlean Unicode WString containing the MessageBox title to be displayed.
Typewill default to MB_TASKMODAL|MB_ICONINFORMATION.
Resultthe Results returned by the system call the MessageBox.

Return Values

The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.

Remarks

  • Since TScript v1.3, System::MessageBox requires user permission via CTScript::SetParameter to be set to PROMPT_USER_SECURITY_EXCEPTIONS before this method will be allowed to work.
Example Use
  • TScript
main(){
   System::MessageBox(u"Hello to all, "
      u"I have made it to this position in the script");
}

Since

TScript Version 1.0

Also See

System::ReportEvent, CTScript::SetParameter
Listen All
Comments (0)
Characters left: 2500
 

Contact Ekky

Thanks for your interest.

Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript