Unicode Intrinsic Functions - DeleteSubstring Method

Delete part of a string

Member of Unicode Intrinsic Functions (PRIM_LIBI.IUnicodeIntrinsics)


NameTypeData TypeDescription
Result*Result (Optional)Unicode StringResulting string
StartPosition*InputIntegerPosition at which to start deleting
Length*Input (Optional)IntegerNumber 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)

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020