PromptMessages.Add Method
Parent Object: PromptMessagesDescription
Method that creates a new custom PromptMessage.
Syntax
PromptMessages.Add( Id As String, PromptText As String, Buttons As Long, Icon As Long, [Title] As Variant, [DisplayedPromptText] As Variant, [DefaultAnswer] As Variant, [Restrictions] As Variant, [PromptSettings] As Variant ) As PromptMessageParameters
Name | Type | Description |
Id | String | Input the String value to specify the Id of PromptMessage. The Id should be unique in the collection of the PromptMessage objects. |
PromptText | String | Input the String value to specify the formatted prompt text of PromptMessage. The string can include “%s” to indicate a string placeholder that you can specify the string value for the placeholder using the PromptStrings argument in PromprMessage.Display method. Currently you can specify up to three placeholders. The string can also specify the hyperlink with XML tags. |
Buttons | Long | Input the Long value to specify the buttons to use for PromptMessage. Valid values are:
|
Icon | Long | Input Long that specifies the icon type. This can be vbCritical (16), vbExclamation (48), vbInformation(64) or vbQuestion (32). |
Title | Variant | Optional input String value to specify the title for PromptMessage. If not supplied, the title will default to "Inventor x", where x is the release number. This is an optional argument whose default value is null. |
DisplayedPromptText | Variant | Optional input String value to specify the displayed prompt text of PromptMessage. If not specified the PromptText will be used as DisplayedPromptText and displayed on Prompt Text column onto Prompts option, otherwise this DisplayedPromptText will be displayed instead. This can be set when the PromptText contains special chars that is not suitable to display in UI. This is an optional argument whose default value is null. |
DefaultAnswer | Variant | Optional input Long value to specify the default response for the PromptMessage dialog. Valid values are:
This is an optional argument whose default value is null. |
Restrictions | Variant | Optional input Long(PromptMessageRestrictionsEnum) value to specify the “Controls when you will see this prompt” option for PromptMessage(grey out the options). Zero or more of the following, in combination (can be added together with +):
This is an optional argument whose default value is null. |
PromptSettings | Variant | Optional input NameValueMap object that specifies more prompt settings.
This is reserved for future use. This is an optional argument whose default value is null. |
Samples
Name | Description |
Prompt message creation sample | This sample demonstrates how to creat a custom prompt message. |