共用方式為


Century Property

Specifies whether the century portion of a date is displayed in a text box. Available at design time and run time.

Object.Century[ = nValue]

Property Values

  • nValue
    One of the following settings:
    Setting Description
    0 Off. The century portion of the date is not displayed.
    1 (Default) On. The century portion of the date is displayed.
    2 The SET CENTURY setting determines if the century portion of the date is displayed. If SET CENTURY is ON, the century portion of the date is displayed. If SET CENTURY is OFF, the century portion of the date is not displayed.

Remarks

The Century property setting is ignored if the DateFormat property is set to Short or Long.

Note that in earlier versions of Visual FoxPro the default for the Century property is 2.

See Also

DateFormat Property, | DateMark Property, | Hours Property, | Seconds Property, | SET CENTURY, | StrictDateEntry Property

Applies To: TextBox Control