View contents of this chapter

The String-Related Functions

The string-related functions manipulate and analyze string data. Len() function returns a Long containing the number of characters in a string or the number of bytes required to store a variable.

Len(string | varname)

Play Sound If the string contains Null, Len() returns a value of 0.

Converting Strings

The following table shows string conversion functions

Function name Description
CStr() Converts its argument to the String data type
Str() Returns a Variant (String) representation of a number.
Val() Returns the numbers contained in a string as a numeric value of appropriate type.

Cstr() and Str convert their arguments to string values. The only difference is that Str() adds a leading blank before positive numbers converted to strings; Cstr() does not.



© Universal Teacher Publications        INDEX Previous Screen Next Screen