This article applies to:
PST no longer recommends utilizing the MsgBox function within E-Prime 3.0. Due to the advancement in computer hardware, displays (CRT to LCD), and operating systems, the functionality of the MsgBox is not persistent.
Later releases of the Windows OS (Windows 8, Windows 8.1, Windows 10, Windows 11) communicate with the display API differently than prior operating systems. E-Prime requires display priority, and newer versions of Windows handles MsgBox (and other 'box-type' prompts) as warnings. Because E-Prime takes precedence, these prompts may be 'hidden' behind the experiment display.
Instead, we recommend using the new DisplayDevice commands. These cover the following dialog box types:
For example, the new DisplayDevice command would appear as the following:
' Example uses of the UTC functions for copy and paste into your script
' Demonstrates use of Display.MsgBox instead of the deprecated MsgBox
' In the example below, MsgBox can be switched with Ask, Answer, and InputBox
Dim theNow As Date
theNow = NowUtc
For more detailed instructions on using these commands, please see its associated listing in the E-Basic Command Reference (https://pstnet.com/ecr).