Compatible Unicode Intrinsic Functions - DeleteSubstring Method
Delete part of a string
Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Unicode String |
Resulting string |
StartPosition |
*Input |
Integer |
Position at which to start deleting |
Length |
*Input (Optional) |
Integer |
Number of bytes to delete |
DeleteSubstring deletes the characters in a string from the specified start position as far as the specified length. If a length is not specified, all characters after the start position will be deleted.
In this example, if #String contained ?abcd?, the result would be ?acd?.
#Com_owner.Caption := #String.DeleteSubstring( 2 1)
All Component Classes
Technical Reference