Signature (Visual Basic / VBA)
Public Function GetTokenFast( _
ByRef rValue As String _
, ByVal vTokenSep As String _
, ByVal vCompare As VbCompareMethod _
) As String
Code Example
Assuming
Dim S As String
S = "First,Second,Third"
for example
GetTokenFast(S, ",", vbBinaryCompare) = "First"
leaves
S = "Second,Third"
Parameters
| Parameter | Description |
|---|---|
| rValue | The string containing the tokens of which the first is to be removed and returned. |
| vTokenSep | The string which separates the tokens within string rValue. If the token separator vTokenSep is an empty string, then the string rValue is considered to consist of a single token. |
| vCompare | Specifies the type of comparison used to determine if the token separator string vTokenSep appears within the string rValue. |