Mid$

combit List & Label Designer

combit List & Label

Mid$

Purpose:

Returns a part of a string. The desired number of characters starting at the starting position will be returned.

If the third parameter is not used, the string will be returned from the starting position to the end.

The first character of the string has the Position 0.

Parameter:

String

Number         Starting position

Number         (optional) Number of characters to be displayed.

Return value:

String

Example:

Mid$("Normalconsumer",6)              Result: "consumer"

Mid$("Normalconsumer",6,30)          Result: "consumer"

Mid$("Normalconsumer",6,3) Result: "con"

Mid$(Name,0,6)                            Result: "Normal"