May 1995
Beginner
508 pages
16h 14m
English
CStr Function
CStr(expression)expression
Use: Required
Data Subtype: Any
Any expression that evaluates to a string.
expression converted to a Variant with a
String subtype.
Returns a string representation of
expression.
Almost any data can be passed to CStr to be
converted to a string.
Dim sMyString as String SMyString = CStr(100)
The string representation of Boolean values is either
True or False, as opposed to
their underlying values of
and -1.
An uninitialized variable passed to CStr returns
an empty string.
Read now
Unlock full access