![]() ![]() When returning a specified substring (piece) from string, the substring returned depends on the arguments used: This uses the SET $PIECE(string,delimiter,from,to)=value syntax. The replacement substring may be the same length, longer, or shorter than the original substring. ![]() It identifiers a substring and replaces it with another substring. This uses the $PIECE(string,delimiter,from,to) syntax. If the delimiter does not occur in string, the entire string is treated as a single substring. $PIECE identifies substrings within string by the presence of a delimiter. If to is prior to from in string, no operation is performed and no error is generated. SET $PIECE syntax also supports *+ n (offset integer for a range of substrings to append beyond the end of string). Permitted values are n (a positive integer specifying the substring count from the beginning of string), * (specifying the last substring in string), and *- n (offset integer count of substrings from end of string). Optional - An expression that evaluates to a code specifying the ending substring for a range of substrings within string. If from is omitted, it defaults to the first delimited substring. Thus, the first delimited substring is 1, the second delimited substring is 2, the last delimited substring is *, and the next-to-last delimited substring is *-1. SET $PIECE syntax also supports *+ n (offset integer count of substrings to append beyond the end of string). Permitted values are n (a positive integer specifying the substring count from the beginning of string), * (specifying the last substring in string), and *- n (offset integer count of substrings counting backwards from end of string). Substrings are separated by a delimiter, and counted from 1. Optional - An expression that evaluates to a code specifying the location of a substring, or the beginning of a range of substrings, within string. Specify delimiter as an expression that evaluates to a quoted string containing one or more characters. In SET $PIECE syntax, string must be a variable or a multi-dimensional property.Ī delimiter used to identify substrings within string. Specify string as an expression that evaluates to a quoted string or a numeric value. The target string in which delimited substrings are identified. SET $P( string, delimiter, from, to)= value Arguments Argument SET $PIECE( string, delimiter, from, to)= value ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |