| Category | Date/Time |
| Default Catalog | Visual FoxPro Catalog\Foundation Classes\Date/Time |
| Class | _clock |
| Base Class | Container |
| Class Library | _datetime.vcx |
| Parent Class | _container |
| Sample | ...\Samples\Vfp98\Solution\Controls\Timer\clock.scx |
Remarks
This class is a simple clock control for a form or container.
To use, drop the class on a project or form or, from the Component Gallery Item Shortcut menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the object in your form where you can specify the appropriate nTimeFormat value. When you drop the class on a project, you can choose between adding the class or creating a subclass.
See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.
| Properties, Events, Methods | Description |
| nTimeFormat property | Toggles between short (for 0) and long (for non-zero values) formats as specified in the Control Panel. Default: 0 |