Salesforce

StrTokenCnt (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

StrTokenCnt (Magic xpa 3.x)

Returns the number of existing delimited tokens in a given string.

Syntax:

StrTokenCnt(source string, delimiter string)

Parameters:

source string: A group of tokens delimited by an Alpha string.

delimiter string: An Alpha string containing the delimiter string.

Returns:

When the delimiter is empty or was not found in the source string, the returned value is one.

Example:

The expression StrTokenCnt('abcd\cdef\ghik\lmnp','\') returns 4.

Note:

The delimiter string can have more than one character for the delimiter.

See also:

StrToken, StrTokenIdx, Val

The Online and Rich Client Samples projects (program ST05 and RST05)

Reference
Attachment 
Attachment