QMExtract()

QMExtract()

Top  Previous  Next

 

The QMExtract() function extracts a field, value or subvalue from a dynamic array. It is analogous to the QMBasic field extraction operator or the EXTRACT() function.

 

The function arguments are:

 

Srcis the dynamic array to be processed

 

Fnois the number of the field to be extracted. If less than 1, 1 is assumed

 

Vnois the number of the value to be extracted. If less than 1, the entire field is extracted.

 

Svnois the number of the subvalue to be extracted. If less than 1, the entire value is extracted.

 

 

The QMExtract() function returns the given field, value or subvalue from the source string. If the required item is not found, a null string is returned.

 

This function is evaluated on the client system and does not require a server connection to be open.

 

The example program fragments below read the record identified by ClientNo from the file open as fClients and then extracts field 4 from it. A real program should test the status from the read to determine if the action was successful.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python