Mid

The Mid instruction is used to return a substring that is within a string.

Syntax

String = Mid ( source, start, count )

Remarks

The start and count parameters are used to determine which part of the source is returned. Regardless of the value of the count parameter, the returned string will be no longer than the original string.

This instruction has the following parameters:

source                  The source parameter is the string on which this instruction will operate.

start                      The Start parameter is an integer that specifies where in the source to begin the operation. A 1 indicates the first character in the string.

count                    The count parameter is an integer that specifies the maximum number of characters returned by the instruction.