show_message

This function creates a pop-up message box which displays the given string and a button marked "Ok" to close it.

NOTE This function is for debug use only on the Windows target, but is deprecated on all other targets.

 

Syntax:

show_message(str);

ArgumentTypeDescription
strStringThe string to show in the pop-up message.

 

Returns:

N/A

 

Example:

var tot = 0;
for (var i = 0; i < 10; i += 1)
{
    tot += inv[i];
}
show_message("Total = " + string(tot));

The above code will loop through the values stored in the array "inv" and add them to the variable "tot" before showing a message with the total.