Spread Windows Forms 7.0 Product Documentation
TryConvert(Object,Decimal) Method
See Also  Support Options
FarPoint.CalcEngine Assembly > FarPoint.CalcEngine Namespace > CalcConvert Class > TryConvert Method : TryConvert(Object,Decimal) Method


value
The value.
decimalValue
The decimal value.

Glossary Item Box

Convert a value to decimal value. The converted value is matched with IsNumber function.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function TryConvert( _
   ByVal value As Object, _
   ByRef decimalValue As Decimal _
) As Boolean
Visual Basic (Usage)Copy Code
Dim value As Object
Dim decimalValue As Decimal
Dim value As Boolean
 
value = CalcConvert.TryConvert(value, decimalValue)
C# 
public static bool TryConvert( 
   object value,
   ref decimal decimalValue
)

Parameters

value
The value.
decimalValue
The decimal value.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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