Export (0) Print
Expand All
4 out of 6 rated this helpful - Rate this topic

String ($) Function for Visual Basic 6.0 Users 

Visual Basic 2005 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 2005 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 2005 accepts Trim$ because the $ works as an identifier type character for the String data type.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.