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

Greg Hellings greg.hellings at gmail.com
Tue Feb 23 13:47:27 EST 2021


I think you need to do something like

sword::SWKey* key = module->getKey(); // or module->createKey(); if you
rather
for(key = sword::TOP

At least, I think that's what it needs...

--Greg

On Tue, Feb 23, 2021 at 12:01 PM David "Judah's Shadow" Blue <
yudahsshadow at gmx.com> wrote:

> 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.
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20210223/a42a8886/attachment.html>


More information about the sword-devel mailing list