QMMatchfield()

Top  Previous  Next

 

The QMMatchfield() function matches a character string against a pattern template and extracts the part corresponding to a specified pattern component.

 

 

Format

 

VBQMMatchfield(ByVal Src as String, ByVal Pattern as String, ByVal Component as Integer) as String

 

Cchar * QMMatchfield(char * Src, char * Pattern, int Component)

 

where

 

Srcis the string to be processed.

 

Patternis the pattern template to be used.

 

Componentis the pattern template component number for which the corresponding part of Src  is to be returned.

 

 

The QMMatchfield() function matches Src against the Pattern template as described for the QMMatch() function. If the string matches, the portion corresponding to the specified Component is returned. If the string does not match the pattern, a null string is returned.