Share via


6.1.2.3.1.12 CStr

Function Declaration

 Function CStr(Expression As Variant) As String 

Parameter

Description

Expression

Any data value (section 2.1).

 

Runtime Semantics.

§ If the value of Expression is an Error (section 2.1) data value then the returned value is the String data value consisting of "Error" followed by a single space character followed by the String that is the result of the Long error code (section 2.1) of the Error data value Let-coerced to String (section 5.5.1.2.4).

§ If the value of Expression is not an Error data value return the String data value that is the result of Expression being Let-coerced to String (section 5.5.1.2.4).