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
SafeStringonly as the return type of procedures of the typeFunctionandSub. - In library modules, you can use
SafeStringin all code. - Default value
- When you declare a variable of type
SafeStringand do not initialize it, its default value is the empty string (""). - Initialization
- If you must give a variable of
SafeStringan initial value, the initializer must be constant. - Automatic conversions
SafeStringwidens toString.- Type characters
SafeStringhas 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.