SpreadsheetGear
GetNumber Method
See Also  Send Feedback
SpreadsheetGear.CustomFunctions Namespace > IArguments Interface : GetNumber Method

index
Returns the argument specified by the zero based index as a double precision floating point number. Note that this method has the side effect of converting a range or array to a single value.

Syntax

Visual Basic (Declaration) 
Function GetNumber( _
   ByVal index As Integer _
) As Double
C# 
double GetNumber( 
   int index
)

Parameters

index

Remarks

Non-numeric arguments are converted to a number if possible. Otherwise, 0.0 is returned by this method, and an internal flag is set indicating that an error has occurred, causing the result of the formula to be an error.

Note that this method has the side effect of converting a range or array to a single value. Use GetArrayDimensions and GetArrayValue to get the dimensions and values of a range or array.

Requirements

Platforms: Windows 2000, Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008. SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.

See Also

Copyright © 2003-2009 SpreadsheetGear LLC. All Rights Reserved.Help Powered by Innovasys   
SpreadsheetGear is a registered trademark of SpreadsheetGear LLC.
Microsoft, Microsoft Excel and Visual Studio are trademarks or registered trademarks of Microsoft Corporation.