CitectVBA Programming Reference > CitectVBA Function Reference > Conversion Functions > CLng

CLng

Converts expressions to a long data type.

Syntax

CLng(Exp)

Exp:

A valid string, number or Variant containing a value recognizable as a string or number.

Return Value

Returns the value of the expression Exp provided in the argument as a long data type.

Related Functions

CDate | CDbl | CInt | CSng | CStr | CVar

Example

Dim x as integer
Dim y as long
y = CLng(x) 'Converts the integer value of x to an long value in y