1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META http-equiv="Content-Style-Type" content="text/css">
7<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
8<title>DWC_GdbSearchRecordsAsync</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13<a name="dwc__gdb_8h_1b7c94670d54321559ac7846de6f026b9"></a>
14<h1 align="left">DWC_GdbSearchRecordsAsync</h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;dwc.h&gt;</CODE><BR>
20  <BR>
21  <PRE><CODE><a href=Macro.html#dwc__gdb_8h_1cb77329e259246f72c99a77edee22a86>DWCGdbError</a> <a href=DWC_GdbSearchRecordsAsync.html#dwc__gdb_8h_1b7c94670d54321559ac7846de6f026b9>DWC_GdbSearchRecordsAsync</a>(const char *table_name,
22                                      const char **field_names,
23                                      int field_num,
24                                      const <a href=DWCGdbSearchCond.html#>DWCGdbSearchCond</a> *search_cond,
25                                      <a href=DWCGdbGetRecordsCallback.html#dwc__gdb_8h_16b32e93f935c1209ab9de64546cbebee>DWCGdbGetRecordsCallback</a> callback,
26                                      void *user_param);</CODE></PRE></dd>
27</dl>
28
29<h2>Arguments</h2>
30
31<TABLE border="1" width="100%">
32  <TBODY>
33
34    <TR>
35<TD width="13%"><EM><STRONG>table_name</STRONG></EM></TD>
36<TD width="87%">Table name.</TD>
37    </TR>
38
39    <TR>
40<TD width="13%"><EM><STRONG>field_names</STRONG></EM></TD>
41<TD width="87%">Array of names of the fields you want to get.</TD>
42    </TR>
43
44    <TR>
45<TD width="13%"><EM><STRONG>field_num</STRONG></EM></TD>
46<TD width="87%">Number of elements in <CODE>field_names</CODE>.</TD>
47    </TR>
48
49    <TR>
50<TD width="13%"><EM><STRONG>search_cond</STRONG></EM></TD>
51<TD width="87%">Search conditions.</TD>
52    </TR>
53
54    <TR>
55<TD width="13%"><EM><STRONG>callback</STRONG></EM></TD>
56<TD width="87%">The callback that will receive the records.</TD>
57    </TR>
58
59    <TR>
60<TD width="13%"><EM><STRONG>user_param</STRONG></EM></TD>
61<TD width="87%">Arbitrary value passed to the callback.</TD>
62    </TR>
63
64  </TBODY>
65</TABLE>
66
67<h2>Return Values</h2>
68
69<p>Error information.</p>
70
71<H2>Description</H2>
72<p>If the process is successful, the callback function specified by the <CODE>callback</CODE> argument is called and the records resulting from the search can be received. Be aware that if the process fails, the callback will not be called.</p><p>If the <a href=Macro.html#dwc__gdb_8h_1cb77329e259246f72c99a77edee22a86e9779fbe6ad274d2016ee2ab66a08582><CODE>DWC_GDB_ERROR_NONE</CODE></a> value is returned, the asynchronous process has started.  Wait until the <a href=DWC_GdbGetState.html#dwc__gdb_8h_1369bfca6c2cd6e2e2893c03c94a5e2db><CODE>DWC_GdbGetState</CODE></a> function stops returning <a href=Macro.html#dwc__gdb_8h_1eb0cda4da19d6df37e71df9d0de849eb605bb3a74ef4c38439052c43bdae07ce><CODE>DWC_GDB_STATE_IN_ASYNC_PROCESS</CODE></a>.</p><p>You can get the result using the <a href=DWC_GdbGetAsyncResult.html#dwc__gdb_8h_1f700899219d0635bc4e4430fa9b7e840><CODE>DWC_GdbGetAsyncResult</CODE></a> function.</p>
73
74<H2>Revision History</H2>
75<DL>
76
77</DL>
78<hr><p>CONFIDENTIAL</p></body>
79</html>
80