CCS Standardfunction   StrCopy [Str]
 

StrCopy [Str]

String [Str]

StartIndex [INT]

StopIndex [INT]

Description of Function

Creates an excerpt from a string.

Testing Points

None

Parameters

String

Value (or variable containing a string) from which an excerpt is to be created.

StartIndex

Specifies the index at which the excerpt is to start. The first character of String has the index 1.
1 <= StartIndex <= Length(String)

StopIndex

Specifies the index at which the excerpt is to end (the indexed character is included in the excerpt).
1 <= StartIndex <= Length(String)
If the StopIndex is less than the StartIndex, the order of the characters is reversed.

Example

Where the variable X contains the string 'Test'.

StrCopy

X,2,3

-> es

StrCopy

X,3,1

-> seT