CitectVBA Programming Reference > CitectVBA Function Reference > Conversion Functions > CStr

CStr

Converts expressions to a string data type.

Syntax

CStr(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 string data type.

Related Functions

CDate | CDbl | CInt | CLng | CStr | CVar | CSng

Example

Dim x as integer
Dim t as string
t = CStr(x) 'Converts the integer value of x to a string value in t