String ($) Function for Visual Basic 6.0 Users

Visual Basic 2008 eliminates the need for some functions to have both a String version and a Variant version.

Visual Basic 6.0

In Visual Basic 6.0, some functions have two versions, one that returns a String value and one that returns a Variant value. These function pairs are differentiated by a dollar sign ($) suffix for the String version; for example, Chr and Chr$.

Visual Basic 2005

Visual Basic 2008 replaces each function pair with a single function. The Variant versions are discontinued, and you can call the String versions either with or without the $ suffix.

Although only Trim is defined, Visual Basic 2008 accepts Trim$ because the $ works as an identifier type character for the String data type.

See Also


Format Function for Visual Basic 6.0 Users

Date and Time for Visual Basic 6.0 Users

Programming Element Support Changes Summary


Trim, LTrim, and RTrim Functions