strmid( base, start, length )


Parameters

  Type Description
base string starting string
start numeric start of substring
length numeric length of substring

_result

Set to a new substring value.

Descriptions

Sets _result to a new string value that is a substring of base. The substring begins at the character specified by start and has a length specified by length. The start parameter is zero based. To include the first character of base use a value off 0. The length parameter may not extend beyond the end of the base string (start + length must be less than or equal to the total length of base).

In the example code below the print command will append "message" to the print log.

base = "This is a message"
strmid( base, 10, 7 )
print( _result )

See Also

strins, strlen, strfind, strbreak, strspan, stricmp, strrev, strtrim, strlower, strupper