[sword-devel] Sword2Net: DumpBibleModuleContent()

Troy A. Griffitts scribe at crosswire.org
Sat Jun 12 15:57:17 MST 2010


Wolfgang,

On 06/12/2010 09:43 AM, Wolfgang Schultz wrote:
> for (FFSwordBible->getKey(); !FFSwordBible->getKey()->Error();
> FFSwordBible->getKey()->increment(1)) { }
>   

I haven't looked at the context, so you might be ok, but be sure to
position the module to the top at loop initialization.  The current
initialization clause doesn't do anything.

I use:

for ((*FFSwordBible) = TOP; !FFSwordBible->Error(); (*FFSwordBible)++) { }

You also might want to turn heading on before the loop so you get those
as well:

((VerseKey *)FFSwordBible->getKey())->Headings(true);

Hope this is useful.

Troy



More information about the sword-devel mailing list