DynamicInputMask Property

Specifies the dynamic format of text and controls in a column by controlling how data is entered and displayed in a Column object. Available at design time; read/write at run time.

Column.DynamicInputMask[ = cInputMask]

Return Value

  • cInputMask
    Specifies a character expression that must evaluate to a character string with the following format:

    [@cFunction] [cMask]
    

    The character expression is reevaluated at run time each time the Grid control is refreshed. For additional information about the format of cFunction and cMask, see the Format and InputMask properties.

Remarks

Applies To: Column Object

The DynamicInputMask property takes precedence over the Format and InputMask properties.

If the control specified by the column's CurrentControl property is a text box, spinner, or combo box, the cFunction and cMask portions of the DynamicInputMask expression are passed to the Format and InputMask properties for the text box, spinner, or combo box.

Note

The Grid AutoFit method might not resize adequately to display the entire contents of a column if you use this property.

Example

The following example demonstrates a typical format for cInputMask:

Column1.DynamicInputMask = "@R$ ###,###,###.##"

See Also

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)