SafeString Data Type

Holds a sequence of Unicode characters the same as the type String, but puts limits on how you can use it.

Instructions

Contexts
In program modules, you can use SafeString only as the return type of procedures of the type Function and Sub.
In library modules, you can use SafeString in all code.
Default value
When you declare a variable of type SafeString and do not initialize it, its default value is the empty string ("").
Initialization
If you must give a variable of SafeString an initial value, the initializer must be constant.
Automatic conversions
SafeString widens to String.
Type characters
SafeString has no type character.

Shared methods and properties

SafeString.Default As SafeString
Returns the default value, "".
SafeString.Length(str As SafeString) As Int32
Returns the number of characters in a string.

See also