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

Glossary Item Box

TypeScientificMax Property


See Also    DLL    Example

Applies To

fpSpread control

Description

Sets or returns the maximum value allowed in a scientific cell. This property is available at run time only.

Syntax

C++

double CSpreadSheet::GetTypeScientificMax( );
void CSpreadSheet::SetTypeScientificMax(double value);

Visual Basic

[form.]fpSpread.TypeScientificMax[ = value#]

Remarks

The default value for the TypeScientificMax property is 1.7E+308. The largest allowed value for the TypeScientificMax property is 1.7E+308.

The value you set for the TypeScientificMax property is the maximum value the control allows the user to type or paste into the specified cell. If the user tries to type or paste a value greater than the value specified by the TypeScientificMax property, the control beeps (if the NoBeep property is set to False) and the user is not allowed to type the value.

Values larger than the specified maximum value can still be added to the cell in code at run time or from a database; when they are added in code or from a database, the value is allowed in the cell. However, the control changes those values to zero the next time the cell is in edit mode. If the cell leaves edit mode with no change to the value, though, the control changes the value back to the invalid value.

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

The TypeScientificMax property does not have an effect unless the CellType property is set to 15 (Scientific) for the specified cell or cells.

To specify the minimum value allowed in a scientific cell, set the TypeScientificMin property.

You can have the scientific cell display a spin button that lets users increment the value to the minimum or maximum value allowed in the cell. To have the cell display a spin button, set the TypeSpin property for the cell to True. The spin button can wrap the value from the maximum to the minimum or vice versa if you set the TypeSpinWrap property to True. You can specify by how many increments the value changes when the user presses the spin button by setting the TypeSpinInc property.

Spread Designer

Choose the Cell menu, the Cell Type menu, the Scientific menu, and then the Settings tab, and then type a value in the Max Value edit box in the Cell Type Settings dialog box.

Data Type

Double

See Also

Creating and Customizing a Scientific Notation Cell

CellType, NoBeep, Sheet, TypeScientificDecimal, TypeScientificDecPlaces, TypeScientificMin, TypeSpin, TypeSpinInc, TypeSpinWrap properties

DLL Correspondence

SSSetTypeScientific function

Copyright © GrapeCity, inc. All rights reserved.