QMField() |
|
|
The QMField() function extracts one or more components of a delimited string. It is analogous to the QMBasic FIELD() function.
Format
Optional ByRef Occurrences as Long) as String
where
The QMField() function returns the specified substring components of Src.
This function is evaluated on the client system and does not require a server connection to be open.
Examples
The above example takes a variable Name holding a person's first and last names separated by a space and returns just their first name.
Note that the C example leaves variables FirstName pointing to a dynamically allocated memory area that must be released using QMFree() when no longer needed. |