PC-Dmis 2010 MR2 Object Library | Send comments on this topic. | See Object Hierarchy Chart
MessageBox Method
See Also

Collapse All Expand All

Message
  Required String that is the message of the message box

TITLE
  Optional String that is the title of the message box. If omitted, the title will be the name and version of PC-DMIS.

Type
  Optional Long used to indicate the button types to be used in the message box. Examples include, "OK", "Cancel", "Retry", "Yes", "No" etc. If omitted, the default is "OK".

# Description

Prompts user with message box above the part program

This function uses the PC-DMIS message box function. It includes all functionality including cancelling of execution tied to the Cancel button.

# Syntax

Visual Basic

    Public Function MessageBox( _
       ByVal Message As String, _
       ByVal TITLE As String, _
       ByVal Type As ENUM_PCDMSG_TYPES _
    ) As ENUM_PCDMSG_RETVALS

# Parameters

Message
  Required String that is the message of the message box
TITLE
  Optional String that is the title of the message box. If omitted, the title will be the name and version of PC-DMIS.
Type

  Value | Description
  --- | ---
  MSGTYP_OK |
  MSGTYP_OKCANCEL |
  MSGTYP_ABORTRETRYIGNORE |
  MSGTYP_YESNOCANCEL |
  MSGTYP_YESNO |
  MSGTYP_RETRY_CANCEL |
  MSGTYP_ICONHAND |
  MSGTYP_ICONQUESTION |
  MSGTYP_ICONEXCLAMATION |
  MSGTYP_ICONASTERISK |
  MSGTYP_DEFBUTTON2 |
  MSGTYP_DEFBUTTON3 |

  Optional Long used to indicate the button types to be used in the message box. Examples include, "OK", "Cancel", "Retry", "Yes", "No" etc. If omitted, the default is "OK".

# Return Type

Integer value of the button chosen by the user. The value is from ENUM_PCDMSG_RETVALS enumeration.

# See Also

PartProgram Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.