rbf_formatUsingMask()

Warning: Support for using this method with external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection) is a beta feature. This method is supported in production systems, except for external objects.

Purpose

Formats a string containing digits as specified in the mask parameter.

Syntax

rbf_formatUsingMask(value, mask)

Parameters

value

The string to format

mask

The input mask, which uses # as a placeholder for a digit

Note: This API is supported in portals as well.

Example

var x = rbf_formatUsingMask("123456789", "###-##-####");

Result: 123-45-6789