Skip to content

StringParseCount

Xusinboy Bekchanov edited this page Nov 6, 2023 · 4 revisions

StringParseCount Function

============================================================================
  • Returns the count of delimited fields from a string expression.
If wszMainStr is empty (a null string) or contains no delimiter character(s), the string is considered to contain exactly one sub-field. In this case, AfxStrParseCount returns the value 0. Delimiter contains a string (one or more characters) that must be fully matched. Delimiters are case-sensitive. Example: StringParseCount("one,two,three", ",") -> 3
============================================================================

Syntax

Function StringParseCount(ByRef MainStr As WString, ByRef Delimiter As Const WString = ",", MatchCase As Boolean = True) As Long

Parameters

Part Type Description
MainStr WString Required.
Delimiter Const WString Optional.
MatchCase Boolean Optional.

Return Value

Long
Clone this wiki locally