Symbian3/SDK/Source/GUID-580471E3-7DFD-5325-A8B9-B3E7FABF872D.dita
changeset 7 51a74ef9ed63
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE concept
       
    11   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
       
    12 <concept id="GUID-580471E3-7DFD-5325-A8B9-B3E7FABF872D" xml:lang="en"><title>Using
       
    13 TDbColSetIter</title><shortdesc>Provides a code snippet to show you how to use the <codeph>TDbColSetIter</codeph> iterator.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
       
    14 <section id="GUID-3A50A4D7-B6BD-40AB-B413-167BE7DE6DE9"><title>Using the iterator</title> <p><codeph>TDbColSetIter</codeph> provides
       
    15 a useful way to iterate over the contents of a column set. Given a <codeph>CDbColSet*
       
    16 set</codeph>, we can count the number of nullable columns like this:</p> <codeblock id="GUID-14CED4FF-C2A4-54E4-B089-A97EA9503AE6" xml:space="preserve">TInt nullable=0;
       
    17 for (TDbColSetIter iter(*set);iter;++iter)
       
    18     {
       
    19     if ((iter-&gt;iAttributes&amp;TDbCol::ENotNull)==0)
       
    20         ++nullable;
       
    21     }</codeblock> </section>
       
    22 </conbody></concept>