WinStudio
IWSFormComponent interface
Sets or returns a string value indicating what the prompt character is for a character missing in an input mask for a form component.
object.InputMaskPrompt
Part |
Description |
object | Required. A reference to a form component object. |
object.InputMaskPrompt = string
Part |
Description |
object | Required. A reference to a form component object. |
string | Required. A literal value or reference to a one-character
string to be used as the new prompt character.
TIP: Avoid using for the prompt character any character that might be used as part of the mask itself. For more information about mask characters, see Input Mask Property. |
For the Get syntax, the return value is a one-character string indicating the current prompt character.
For more information about input masks, including valid characters you can use in setting them, see Input Mask Property.
Sub Main() Dim maskPrompt As String maskPrompt = ThisForm.Components("gridColumn2").InputMaskPrompt Application.ShowMessage("The mask prompt character is: " & maskPrompt) ThisForm.Components("gridColumn2").InputMaskPrompt = "$" maskPrompt = ThisForm.Components("gridColumn2").InputMaskPrompt Application.ShowMessage("The new mask prompt character is: " & maskPrompt) End Sub