Previous Topic: DOY Function--Return Day of Year

Next Topic: ERROR Function--Write Error Message to Console Log

ENUMERATE Function--Test Set Elements

The ENUMERATE function passes each element in the specified set to the named expression specified by the parameter #virtual_user_attribute or @user_class using pasting. If the named expression returns a value, the element is included in the resulting string.

Syntax

The ENUMERATE function has the following format:

ENUMERATE(set, #virtual_user_attribute | @user_class)

Parameters

The ENUMERATE function accepts the following parameters:

set (string)

Specifies a string of elements that are separated by the caret character: 'element1^element2'. Each element is a string.

#virtual_user_attribute (named expression)

Specifies a named expression that calculates a user attribute.

@user_class (named expression)

Specifies a named expression that tests for membership in a user directory or group.

Return Value

The ENUMERATE function returns a string.

Example

Assume that the following statements are true:


Return_value=ENUMERATE('First     ^Middle    ^Last      ', #RTrimset)
Return_value='First^Middle^Last'

More information:

COUNT Function--Count the Elements in a Set

FILTER Function--Test Set Elements

LOOP Function--Call a Virtual Attribute in a Loop

SORT Function--Sort a Set

Pasting


Copyright © 2010 CA. All rights reserved. Email CA about this topic