Mid Function

Top  Previous  Next

 

Function:

Returns len characters from a string sourcestr starting from position pos.

Syntax:

mid(byref sourcestr as string, frompos as byte, len as byte) as string

See Also:

Left, Right

 


Part

Description

sourcestr

String from which to take the middle section.

frompos

First character to take. The leftmost character is counted to be at position 1.

len

Number of characters to take.

Details

---

Examples

 

s = mid("ABCDE",2,3) ' result will be 'BCD'.