User Tools

Site Tools


slice_return_substring_from_string_.htm
Navigation:  Templates > Template Language Reference > Built-in Template Procedures >====== SLICE (return substring from string) C6H0068.jpg ====== Previous pageReturn to chapter overviewNext page

SLICE( expression, start, end )

blk2blue.jpg

SLICE Returns a substring portion of the expression string.
expression A string constant, symbol, or expression containing the string from which to return a substring portion.
start An integer constant or symbol containing the starting position (inclusive) within the expression from which to extract the substring.
end An integer constant or symbol containing the ending position (inclusive) within the expression from which to extract the substring.

The SLICE procedure returns the substring portion of the expression string identified by the start and end position values. This is equivalent to the Clarion language string slicing operation.

Return Data Type:     STRING

Example:

#SET(%MySymbol,SLICE('ABCDE,2,4))       #!Return 'BCD'

See Also: Built-In Template Procedures

slice_return_substring_from_string_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1