Spread 8.0 Documentation
SSVGetMax, SSVSetMax Functions
Support Options
DLL Reference > DLL Functions > SSVGetMax, SSVSetMax Functions

Glossary Item Box

SSVGetMax, SSVSetMax Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the maximum number of virtual rows when virtual mode is on.

Syntax

C

SS_COORD SSVGetMax(HWND hWnd);

SS_COORD SSVSetMax(HWND hWnd, SS_COORD Max);

C++

SS_COORD TSpread::VGetMax( );

SS_COORD TSpread::VSetMax(SS_COORD Max);

Parameters

The SSVGetMax function has the following parameter:

Parameter Description
hWnd Window handle of the fpSpread control

The SSVSetMax function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Max Maximum number of virtual rows

Remarks

This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.

For the SSVGetMax function, a value of –1 is returned when the number of maximum rows is unknown. For the SSVSetMax function, specify a value of –1 for the Max parameter if the maximum number of rows is not known, which is the case for many database applications.

Note: If you set a value for the Max parameter, be sure the number of records in the database matches the maximum number of rows in virtual mode, otherwise the results will be unpredictable.

Return Value

SSVGetMax: Current maximum number of virtual rows.
SSVSetMax: Previous maximum number of virtual rows.

See Also

Specifying the Maximum Number of Rows Customizing Virtual Mode

SSSetSheet function

ActiveX Correspondence

VirtualMaxRows property

Copyright © GrapeCity, inc. All rights reserved.