Format Property

Specifies the input and output formatting of a control's Value property. Available at design time and run time.

Control.Format[ = cFunction]

Return Value

  • cFunction
    Specifies the character constraints for data entry and formatting for display.

    The following table lists the valid cFunction values for the appropriate controls.

    cFunction

    EditBox control

    K

    Spinner control

    $

    ^

    K

    L

    R

    TextBox control and Column object

    !

    $

    ^

    A

    D

    E

    F

    K

    L

    M

    R

    T

    YS

    YL

    EditBox control, TextBox control, Column object, and Spinner control

    Z

Remarks

Applies To: Column Object | ComboBox Control | EditBox Control | Spinner Control | TextBox Control (Visual FoxPro)

The Format property specifies a behavior for the entire input field. You can mix several Format codes, but they always affect everything in the input field. This property contrasts to the InputMask property in which each entry in the input mask corresponds to an entry in the input field.

The Format property mimics the behavior of the FUNCTION clause in the @ ... GET and @ ... EDIT commands.

See Also

Reference

DynamicInputMask Property

Value Property

InputMask Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)