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

Glossary Item Box

TypeCurrencyLeadingZero Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns whether a leading zero displays in a currency cell. This property is available at run time only.

Syntax

C++

long CSpreadSheet::GetTypeCurrencyLeadingZero( );
void CSpreadSheet::SetTypeCurrencyLeadingZero(long value);

Visual Basic

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

Remarks

When the TypeCurrencyLeadingZero property is set to 2 (Yes), currency cells display a leading zero for values less than 1.0 and greater than –1.0, for example, "$0.21".

Note: The value zero always displays a leading zero.

The following settings are available:

Setting Description Constants
0 - Intl (Default) Uses the regional setting for Number Format in the Windows Control Panel TypeLeadingZeroIntl
1 - No Removes the leading zero TypeLeadingZeroNo
2 - Yes Displays the leading zero TypeLeadingZeroYes

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 TypeCurrencyLeadingZero 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 TypeCurrencyLeadingZero property for a cell or cells, any subsequent currency cells you create will use the same TypeCurrencyLeadingZero setting unless you reset it for those cells.

The TypeCurrencyLeadingZero property does not have an effect unless the CellType property is set to 12 (Currency) for the specified cell or cells.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Currency menu, and then the Settings tab, and then select an item in the Leading Zero combo box in the Cell Type Settings dialog box.

Data Type

Integer (Enumerated)

See Also

Variations in Windows Regional Settings or Options
Formatting a Currency Cell

CellType, Sheet, TypeCurrencyDecimal, TypeCurrencyDecPlaces, TypeCurrencyMax, TypeCurrencyMin, TypeCurrencyNegStyle, TypeCurrencyPosStyle, TypeCurrencySeparator, TypeCurrencyShowSep, TypeCurrencyShowSymbol, TypeCurrencySymbol properties

DLL Correspondence

SSSetTypeCurrencyEx function

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