Salesforce

Rep (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Rep (Magic xpa 4.x)

Replaces an Alpha substring within a string with another substring.

Syntax:

Rep(target, origin, pos_target, len_origin)

Parameters:

target: The target Alpha string or expression where the replacement will take place.

origin: The Alpha string or expression that provides the substring to be copied to target.

pos_target: The first position in the target string that will receive the substring from origin.

len_origin: The number of characters that will be moved from origin to target, starting from the leftmost character of origin.

Returns:

Alpha string containing modified target string.

Example:

Rep('12345','abcde',3,2) returns '12ab5'

See also:

The Online and Rich Client Samples projects (program ST03 and RST03)

Reference
Attachment 
Attachment