WinStudio

InputMask Property

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.

For more information about input masks, including valid characters you can use in setting them, see Input Mask Property.

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

Related Topics

Input Mask Property