WinStudio
IWSFormComponent interface
Sets or returns a string indicating what the input mask for a component is.
object.InputMask
Part |
Description |
object | Required. A reference to a form component object. |
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. |
The return value is a string indicating the current mask value.
For more information about input masks, including valid characters you can use in setting them, see Input Mask Property.
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