Copy

Top  Previous  Next

Prototype

 

StrSubstr:=Copy(strString,intStart,intLen)  

 

Description

 

Copy a substring from string by starting from the specified position and length

 

Parameters

 

StrString: original string where extracting the substring.

 

IntStart: integer value corresponding to the original position.

 

IntLen: integer value corresponding to the length characters substring

 

Returned value

 

StrSubstr: substring equivalent to the sequence of characters from IntStart position,of length IntLen

 

Notes

 

None.

 

Example

 

// Copy the first character of current file name

strDisk:=Copy(_CurrentInputFile,1,1);

// Log a message

ApplicationLog('The file is on volume '+strDisk);