Compatible Unicode Intrinsic Functions - DeleteSubstring Method

Delete part of a string

Member of Compatible Unicode Intrinsic Functions (PRIM_LIBI.ICompatibleUnicodeIntrinsics)

Parameters

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

Details

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.

Example

In this example, if #String contained ?abcd?, the result would be ?acd?.

     #Com_owner.Caption := #String.DeleteSubstring( 2 1)

See also

All Component Classes

Technical Reference