[sword-devel] Best way to interate through each key in a module

David "Judah's Shadow" Blue yudahsshadow at gmx.com
Tue Feb 23 12:53:53 EST 2021


I'm wanting to iterate through each key in a given module (bible, commentary, 
lexdict). I tried 

...
sword::SWModule *module;
module = this->swordLibrary.getModule(this->selectedModule.c_str());
for(module = sword::TOP; !module->Error(); module++)
...

and I get "error: invalid user-defined conversion from ‘sword::SW_POSITION’ to 
‘sword::SWModule*" on building. So I'm wondering what the best way to go 
through each entry in a module.




More information about the sword-devel mailing list