diff -r 89d6a7a84779 -r 25a17d01db0c Symbian3/PDK/Source/GUID-580471E3-7DFD-5325-A8B9-B3E7FABF872D.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/PDK/Source/GUID-580471E3-7DFD-5325-A8B9-B3E7FABF872D.dita Fri Jan 22 18:26:19 2010 +0000 @@ -0,0 +1,17 @@ + + + + + +Using TDbColSetIter
Using the iterator

TDbColSetIter provides a useful way to iterate over the contents of a column set. Given a CDbColSet* set, we can count the number of nullable columns like this:

TInt nullable=0; +for (TDbColSetIter iter(*set);iter;++iter) + { + if ((iter->iAttributes&TDbCol::ENotNull)==0) + ++nullable; + }
\ No newline at end of file