InputMask property (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
Sets or returns a string indicating what the input mask for a component is.
Get Syntax
object.InputMask
Part | Description |
object | Required. A reference to a form component object. |
Set Syntax
object.InputMask = string
Part | Description |
object | Required. A reference to a form component object. |
string | Required. The new mask value to be applied to the object. |
Remarks
The return value is a string indicating the current mask value.
Example
Sub Main()
Dim maskStr As String
maskStr = ThisForm.Components("gridColumn2").InputMask
Application.ShowMessage("The input mask is: " & maskStr)
ThisForm.Components("gridColumn2").InputMask = "99-ZZZZ"
maskStr = ThisForm.Components("gridColumn2").InputMask
Application.ShowMessage("The input mask has been changed to: " & maskStr)
End Sub
相关主题