AfxStrParseAnyfunction
Returns a delimited field from a string expression. Supports more than one character for the delimiter.
Syntax
FUNCTION AfxStrParse (BYREF wszMainStr AS CONST WSTRING, BYVAL nPosition AS LONG = 1, BYREF wszDelimiter AS CONST WSTRING = ",") AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
wszMainStr | The string to be parsed. | |
nPosition | Starting position. If nPosition is zero or is outside of the actual field count, an empty string is returned. If nPosition is negative, fields are searched from the right to left of the wszMainStr. | |
wszDelimiter | A string of one or more characters any of which may act as a delimiter character. |
Description
Returns a delimited field from a string expression.
Example
DIM dws AS DWSTRING = AfxStrParseAny("1;2,3", 2, ",;") ' Returns "2"
Reference
- Include file
AfxStr.inc - Defined in AfxNova/AfxStr.inc:1289
- Documented in String Management/String Procedures.md
- Topic: String Procedures