DataBasic Reference > MultiValue Compatibility > Statements and Intrinsic Functions > SWAP Function

Comment on this topic

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)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

SWAP Function

Replaces a substring with a new substring.

This function is provided for compatibility with other MultiValue systems.

Syntax

SWAP(oldString, oldSubstr, newSubstr{, count{, startOccur}})

Syntax Elements

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.

Return Value

SWAP returns the modified string.

Comments

SWAP is identical in operation to the CHANGE function.

RealityV15.0Comment on this topic