String.Copy |
Top Previous Next |
Syntax function String.Copy(Str: string; Index: integer; Count: integer): string
Alternative Names
Description Copies a part of the string Str starting at character given by Index for a length of a maximum of Count characters.
Returns part of the string, or an empty string is the Index-value is higher than the string length.
See also
Example execute udsblock as begin /* copies "is a" from the string */ valueout = String.Copy('this is a string value', 6, 4); GUI.ShowMessage(valueout);
/* copies "is" from the strong */ valueout = String.Copy('this', 3, 10); GUI.ShowMessage(valueout); end |