CitectVBA Programming Reference > CitectVBA Function Reference > String Functions

String Functions

CitectVBA strings functions are provided to create, edit and implement strings within CitectVBA code. The strings functions predefined in CitectVBA are:

Asc

Returns a numeric value that is the ASCII code for the first character in a string.

Chr

Converts an ASCII number to a one character string.

InStr

Returns the character position of the first occurrence of string2 within string1.

LCase

Returns a copy of string in which all characters have been converted to lowercase.

Left, Left$

Returns the left most characters of a string parameter.

Len

Determines the number of characters in the stringargument.

Line Input #

Reads a single line from an open sequential file and assigns it to a string variable.

LTrim

Strips any leading spaces from a string variable.

Mid

Returns a substring within a string.

Option Compare

Determines the default string comparison method.

Option Explicit

Forces explicit declaration of all variables.

Right

Returns the right most characters of a string parameter.

RTrim

Strips any trailing spaces from a string variable.

Space

Adds a specified number of spaces in a print statement.

StrComp

Returns a variant that is the result of the comparison of two strings.

String

Create a string that consists of one character repeated a specific number of times.

Trim

Strips any leading and trailing spaces from Str variable.

UCase

Returns a copy of string in which all characters have been converted to uppercase.