VSLICE() |
![]() ![]() ![]() |
The VSLICE() function returns a string formed by extracting a given value position from a dynamic array.
Format
VSLICE(string, value)
where
The VSLICE() function processes string to build a new dynamic array containing only the specified value position from each field. Subvalues are returned as part of each value in the result string.
If value is less than one, the VSLICE() function returns the source string. If value is greater than the number of values in all fields of string, a null string is returned.
Example
If S holds the string "AAVMBBVMCCFMDDVMEEVMFF"
X = VSLICE(S, 2)
would set X to "BBFMEE" |