QMClearSelect()

QMClearSelect()

Top  Previous  Next

 

The QMClearSelect() function clears a select list. It is analogous to the QMBasic CLEARSELECT statement.

 

The function takes a single argument, ListNo, which is the select list number to be cleared. This must be in the range 0 to 10. No error occurs if the list was not active.

 

Applications that could leave unprocessed items in the list should always clear when it is no longer required. This is particularly important with the default select list (list 0) as items left in this list may affect commands executed on the server later in the session.

 

The program fragment in the examples below builds select list 1 and uses it to process records from the file open as fClients. It exits from the loop when it finds the first record where field 1 is empty. Because this could leave a partially processed select list, QMClearSelect() is used to clear the list.

 

 

hmtoggle_plus1C

 

hmtoggle_plus1VB.Net

 

hmtoggle_plus1QMBasic Class Module

 

hmtoggle_plus1Java

 

hmtoggle_plus1Python