DexWarning()

The DexWarning() function creates a warning dialog box displaying the specified string. Processing stops while the system waits for the user to respond.

Syntax

DexWarning(prompt)

Parameters

prompt - A string with the message to be displayed in the dialog box.

Return value

The boolean value true.

Comments

The dialog box has one button labeled OK. The icon displayed is the standard warning icon for the operating system.

Examples

The following C# example retrieves the number of the next note form that can opened in Microsoft Dynamics GP. If the value returned is 0 (zero) then the DexWarning() function is used to display the message indicating that no additional note windows can be opened.

Dynamics.Procedures.GetNextFormNoteToOpen.Invoke(out formNumber);
if (formNumber == 0)
{
    // Too many notes already open
    Dynamics.Forms.SyVisualStudioHelper.Functions.DexWarning.Invoke
    ("Too many note windows open");
}

The following Visual Basic example retrieves the number of the next note form that can opened in Microsoft Dynamics GP. If the value returned is 0 (zero) then the DexWarning() function is used to display the message indicating that no additional note windows can be opened.

Dynamics.Procedures.GetNextFormNoteToOpen.Invoke(formNumber)
If formNumber = 0 Then
    ' Too many notes alread open
    Dynamics.Forms.SyVisualStudioHelper.Functions.DexWarning _
    .Invoke("Too many note windows open")
End If