Kernel 8.0 APIs Banner [skip navigation]
Office of Information & Technology (OIT) Banner

$$REPLACE^XLFSTR(): Replace Strings

Reference Type: Supported, Category: String Functions, Integration Agreement: 10104

Description

This extrinsic function uses a multi-character $Translate to return a string with the specified string replaced.

Format

  $$REPLACE^XLFSTR(in,.spec)

Input Parameters

in:

(required) Input string.

.spec:

(required) An array passed by reference.

Output

returns:

Returns the replaced string.

Example 1

>SET spec("aa")="a",spec("pqr")="alabama"
>S X=$$REPLACE^XLFSTR("aaaaaaapqraaaaaaa",.spec)

>W X
aaaaalabamaaaaa

Example 2

>SET spec("F")="VA File",spec("M")="Man"
>S X=$$REPLACE^XLFSTR("FM",.spec)

>W X
VA FileMan


VA (Internet) / VA(Intranet) / OI / PD / Site Map / Terms of Use / VA Privacy Policy / Accessibility

Reviewed/Updated: August 26, 2011

If you have questions, need more information, or are having accessibility problems with this website, please contact us by E-Mail: Webmasters, Phone: 510-768-6800, or FAX: 510-768-6850.