Counts the number of values separated by the specified delimiter.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function Count( _ 
   ByVal array As String,  _ 
   ByVal delimiter As Char _ 
) As Integer
C#
public int Count(
   string array,
   char delimiter
)
C++
public:
 int Count(
   String array,
   wchar_t delimiter
) sealed 
J#
public int Count(
   string array,
   char delimiter
)
JScript
public  function Count(
   array : String,
   delimiter : char
) : int

Parameters

array
is the string containing the dynamic array
delimiter
is a character containing the delimiter

Return Value

an integer containing the number of values delimited by the specified delimiter

Remarks



Example shows a count

 Copy Code
 Dim mvspfunctions as new rocketsoftware.MVSP.Functions
 Dim am as chr(254)
 Dim txt as string
 Dim result as integer
 txt = "abc" & am & "def" & am & "ghi"
 result = mvspfunctions.Count(txt,am)
 

See Also