Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
Reality V15.0 ()
SWAP Function (DataBasic MultiValue Compatibility) (m6187ai+swap_f.htm)
Replaces a substring with a new substring.
This function is provided for compatibility with other MultiValue systems.
SWAP(oldString, oldSubstr, newSubstr{, count{, startOccur}})
oldString The original string.
oldSubstr The substring in the original string to be changed.
newSubstr The replacement substring.
count The number of occurrences of oldSubstr to replace with newSubstr. If omitted or less than 1, all occurrences are replaced.
startOccur The number of the first occurrence to replace. If omitted or less than 1, the first occurrence is assumed.
SWAP returns the modified string.
SWAP is identical in operation to the CHANGE function.