1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<HTML>
3<HEAD>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows">
6<META http-equiv="Content-Style-Type" content="text/css">
7<TITLE>ENV_SearchByMember</TITLE>
8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
9</HEAD>
10<BODY>
11<H1 align="left">ENV_SearchByMember <img src="../image/NTR.gif"align="middle"><img src="../image/TWL.gif" align="middle"></H1>
12<H2>Syntax</H2>
13<DL>
14  <DD>
15<PRE><CODE>#include &lt;nitro/env.h&gt;</CODE></PRE>
16  <PRE><CODE>ENVResource* ENV_SearchByMember(
17           ENVResourceIter*  iter,
18           const char*     memberName );
19  </CODE></PRE>
20</DL>
21<H2>Arguments</H2>
22<TABLE border="1">
23  <TBODY>
24    <TR>
25<TD><SPAN class="argument">iter</SPAN></TD>
26<TD>Resource iterator</TD>
27    </TR>
28    <TR>
29<TD><SPAN class="argument">memberName</SPAN></TD>
30<TD>Member name to search for</TD>
31    </TR>
32  </TBODY>
33</TABLE>
34<H2>Return Values</H2>
35<P>Returns a pointer to the resource if it was obtainable. If the pointer is unobtainable, it returns <CODE>NULL</CODE>.</P>
36<H2>Description</H2>
37<P>Searches for and gets a resource that has a designated member name.</P>
38<P>Be sure to prepare a resource iterator in advance and initialize it with <A href="ENV_InitIter.html"><CODE>ENV_InitIter</CODE></A>. By continuously searching with this iterator, you can successively get resources that match the conditions.</P>
39<P>The member name does not include a period (&quot;<CODE>.</CODE>&quot;). For example, when searching with the member name &quot;<CODE>member</CODE>&quot;:</P>
40<BLOCKQUOTE><CODE>&quot;class.member&quot;<BR>&quot;class.member.001&quot;<BR>&quot;class.member.class&quot;</CODE></BLOCKQUOTE>
41<P>all have matches, but:</P>
42<BLOCKQUOTE><CODE>&quot;class.member001&quot;<BR>&quot;class.member2.member&quot;</CODE></BLOCKQUOTE>
43<P>do not match.</P>
44<P><B>Example:</B><BR>Below is an example of getting the resource with the specific member &quot;memberName&quot;.</P>
45<BLOCKQUOTE style="background-color:#ffffcc"><CODE><B>ENVResourceIter  iter;</B></CODE><CODE><BR>ENVResource*&nbsp;&nbsp;&nbsp;&nbsp;p;<BR>&nbsp;<BR><B>ENV_InitIter( &amp;iter );</B><BR>while(&nbsp;(p&nbsp;=&nbsp;<B>ENV_SearchByMember( &amp;iter, <BR>&quot;memberName&quot; )</B>&nbsp;)&nbsp;)<BR>{<BR>OS_Printf(&nbsp;&quot;resource&nbsp;= %s\n&quot;, p-&gt;name );<BR>}</CODE></BLOCKQUOTE>
46<H2>See Also</H2>
47<P><A href="ENV_Init.html"><CODE>ENV_Init</CODE></A><BR> <A href="ENV_InitIter.html"><CODE>ENV_InitIter</CODE></A><BR> <A href="ENV_SearchByClass.html"><CODE>ENV_SearchByClass</CODE></A><BR> <A href="ENV_SearchByType.html"><CODE>ENV_SearchByType</CODE></A><BR> <A href="ENV_SearchByPartialName.html"><CODE>ENV_SearchByPartialName</CODE></A><BR> <A href="ENV_GetLastResourceSetFromIter.html"><CODE>ENV_GetLastResourceSetFromIter</CODE></A></P>
48<H2>Revision History</H2>
49<P>2005/08/18 Initial version.</P>
50<hr><p>CONFIDENTIAL</p></body>
51</HTML>
52