Please enable JavaScript to view this site.

Function that returns the specified portion of a string.

Syntax

string str_mid (string strSrc, i32 pos, i32 nChar)

strSrc

String from which the substring is to be taken

pos

Position of the character from which the reading starts.

pos = 1 indicates that the pickup is to start from the first character.

If pos < 1 an alarm is issued and the value 1 is forced.

If pos is greater than the number of constituent characters in the string, an alarm is raised and an empty string is returned

nChar

Number of characters to be read.

If a value greater than the current string length is set, the resulting substring will consist of the characters between pos and the end of the string

Result

Returns a substring containing a portion of the strSrc string

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC