INFORMIX
DataBlade API Programmer's Manual
Chapter 7: Processing Results
Home Contents Index Master Index New Book

Using an mi_get_result() Loop

The DataBlade API mi_get_result() function returns the status of the current statement on a particular connection. The current statement is the most recent statement sent to the database server on the connection. Only one statement is current at a time. The mi_get_result() function can provide any of the following information about the current statement to the application:

The mi_get_result() function is usually executed in a loop after mi_exec() sends a statement to the database server. The loop terminates when mi_get_result() returns MI_NO_MORE_RESULTS. Think of the mi_get_result() loop as an iteration over the states of the database server.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.