VB String Function$

D

Douglas J. Steele

Not quite, Ken.

The $ extension means that the function returns as String. Without it, the
function returns a Variant.

From the Help file:
Some functions have two versions: one that returns a Variant data type and
one that returns a String data type. The Variant versions are more
convenient because variants handle conversions between different types of
data automatically. They also allow Null to be propagated through an
expression. The String versions are more efficient because they use less
memory.

Consider using the String version when:

· Your program is very large and uses many variables.
· You write data directly to random-access files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top