MindFusion.Reporting for Silverlight Programmer's Guide
CInt

Converts the value, specified as an argument, to a value of type int.

Syntax

 Copy Code

int CInt (
    object value
)

Parameters

value
Any valid expression.

Return Value

Returns the specified argument converted to int, or 0, if the argument cannot be converted.

Remarks

If value is a number of any kind, it is converted to int. If value is a string, it is parsed as an integer and the result is returned. If none of the above applies, 0 is returned.

See Also

Conversion Functions
CBool Function
CDate Function
CDbl Function
CSng Function
CStr Function