Strings
- Function Asc(c$)
Returns the ASCII value of a character.
- Function Chr$(n)
Returns the character with the matching ASCII value n.
- Function Insert$(src$, tgt$, pos)
Returns a string containing str_to_insert$ inserted into src$ at a given position.
- Function InStr(src$, substr$)
Returns the position in src$ where substr$ is found. If not found it will return -1.
- Function LCase$(src$)
Returns src$ converted to a completely lower-case string.
- Function Left$(src$, n)
Returns a substring n characters in length from the left side of the given string.
- Function Length(src$)
See also
Returns the number of characters in the given string.
Note: This function is the exact same as Len().- Function Len(src$)
See also
Returns the number of characters in the given string.
Note: This function is the exact same as Length().- Function LTrim$(src$)
Returns src$ with all the spaces before the first non-space character removed.
See also
RTrim(),Trim()
- Function Mid$(src$, start, n)
Returns a substring n characters long starting at start pos.
- Function ReplaceSubstr$(src$, rpc$, pos)
Overwrites the characters at the given position in src$ with rpc$.
- Function Replace$(src$, tgt$, rpc$)
Replaces all occurrences of tgt$ with rpc$.
- Function Reverse$(src$)
Returns src$ with the characters in reverse order.
- Function Right$(src$, n)
Returns n number of characters from the right side of src$.
- Function Rtrim$(src$)
Returns src$ with all the spaces after the last non-space character removed.
- Function StringFill$(src$, n)
Returns a string filled with src$ repeated n times.
- Function Str$(n)
Returns a number converted to a string.
- Function Str_F$(n)
Returns a number converted to a string in fixed notation.
The number will be returned with 6 decimal places of precision.
See also
Str$(),Str_S$()
- Function Str_S$(n)
Returns a number converted to a string in scientific notation.
See also
Str$(),Str_F$()
- Function Tally(src$, substr$)
Returns the number of instances of substr$ in the src$ string.
- Function Trim$(src$)
Returns src$ with all leading and trailing spaces removed.
- Function Ucase$(src$)
Returns src$ with all characters uppercase.
- Function Val(n$)
Converts a string to a number and returns the value.
Returns 0 if the string was not a valid number.
- Function Size(s$)
Returns the size in bytes of a string.
The size will not always be the same as the length. For instance, a lot of unicode characters are represented by more than one byte.
- Function BufferFromString(s$, ByRef buffer)
Stores the byte value of a string into a number buffer.
See also
StringFromBuffer$()
- Function StringFromBuffer$(ByRef buffer, buffer_size)
Returns a string generated from the character values stored in the buffer.