Spread 8.0 Documentation
CFGetRangeParamExt, ScriptCFGetRangeParamExt Methods
Support Options
ActiveX Reference > ActiveX Methods > CFGetRangeParamExt, ScriptCFGetRangeParamExt Methods

Glossary Item Box

CFGetRangeParamExt, ScriptCFGetRangeParamExt Methods


See Also

Applies To

fpSpread control

Description

Returns the sheet, column, and row coordinates of a cell range reference parameter that is being passed into a custom function.

Syntax

C++

void CSpreadSheet::CFGetRangeParamExt (short Param, short *Sheet, long* Col, long* Row, long* Col2, long* Row2);

Visual Basic

fpSpread.CFGetRangeParamExt(ByVal Param As Integer, Sheet As Integer, Col As Long, Row As Long, Col2 As Long, Row2 As Long)

Note: The ScriptCFGetRangeParamExt method uses the same syntax except method parameters that are not passed "ByVal" are declared as variants. For more information on Script methods, see Scripting Environment Usage.

Parameters

The following parameters are available:

Parameter Description
Param Index number of the parameter
(The index of the first parameter is 1.)
Sheet Sheet number
Col Left column coordinate of range reference
Row Top row coordinate of range reference
Col2 Right column coordinate of range reference
Row2 Bottom row coordinate of range reference

Remarks

This method can only be used inside the CustomFunction event handler.

You must use the CFGetParamInfo method to check the parameter status and type before calling the CFGetRangeParam method.

Note: Call this method if you use the Spread control in a scripting environment (for example, Microsoft's Visual InterDev or Internet Explorer) or a non-scripting environment. However, if you want to use the Spread control in a scripting environment and you want to change any parameter that is not passed "ByVal", you must set the ScriptEnhanced property to True and call the ScriptCFGetRangeParamExt method. ScriptCFGetRangeParamExt method parameters that are not passed "ByVal" are declared as variants.

Return Type

Returns the range coordinates in the Sheet, Col, Row, Col2, and Row2 parameters.

See Also

Creating and Using Custom Functions

Sheet property

CustomFunction event

AddCustomFunction, AddCustomFunctionExt, CFGetCellParam, CFGetDoubleParam, CFGetDoubleParamExt, CFGetLongParam, CFGetParamInfo, CFGetStringParam, CFSetResult, EnumCustomFunction, GetCustomFunction, RemoveCustomFunction methods

ScriptEnhanced property

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