Spread 8.0 Documentation
TypeTime24Hour Property
Support Options
ActiveX Reference > ActiveX Properties > TypeTime24Hour Property

Glossary Item Box

TypeTime24Hour Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns whether time is displayed in 12- or 24-hour format in a time cell. This property is available at run time only.

Syntax

C++

long CSpreadSheet::GetTypeTime24Hour( );
void CSpreadSheet::SetTypeTime24Hour(long value);

Visual Basic

[form.]fpSpread.TypeTime24Hour[ = setting%]

Remarks

The following settings are available:

Setting Description Constant
0 - 12 Hour Displays time in 12-hour format TypeTime24Hour12HourClock
1 - 24 Hour Displays time in 24-hour format TypeTime24Hour24HourClock
2 - Default Resets to use the Time Format setting in the Windows Control Panel TypeTime24HourDefault

The default value for the TypeTime24Hour property is taken from the Time Format setting in the Windows Control Panel.

Note: The control does not recognize changes made to the Windows regional settings or options until you restart your development environment or your application (or perform any operation that unloads and reloads the current control files). For more information about regional settings or options and Windows operating environments, see Variations in Windows Regional Settings or Options.

To use the TypeTime24Hour property, specify the sheet with which you want to work by setting the Sheet property. Then specify the cell or cells to which to apply the property, as described in Using Column and Row Properties. Once you set the TypeTime24Hour property for a cell or cells, any subsequent time cells you create will use the same TypeTime24Hour setting unless you reset it for those cells.

The TypeTime24Hour property does not have an effect unless the CellType property is set to 6 (Time) for the specified cell or cells.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Time menu, and then the Settings tab, and then select an item in the Format drop-down list box in the Cell Type Settings dialog box.

Data Type

Integer (Enumerated)

See Also

Variations in Windows Regional Settings or Options
Formatting a Time Cell

CellType, Sheet, TypeTimeSeconds, TypeTimeSeparator properties

DLL Correspondence

SSSetTypeTime function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.