<div dir="ltr">I think you need to do something like<div><br></div><div>sword::SWKey* key = module->getKey(); // or module->createKey(); if you rather</div><div>for(key = sword::TOP</div><div><br></div><div>At least, I think that's what it needs...</div><div><br></div><div>--Greg</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 23, 2021 at 12:01 PM David "Judah's Shadow" Blue <<a href="mailto:yudahsshadow@gmx.com">yudahsshadow@gmx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm wanting to iterate through each key in a given module (bible, commentary, <br>
lexdict). I tried <br>
<br>
...<br>
sword::SWModule *module;<br>
module = this->swordLibrary.getModule(this->selectedModule.c_str());<br>
for(module = sword::TOP; !module->Error(); module++)<br>
...<br>
<br>
and I get "error: invalid user-defined conversion from ‘sword::SW_POSITION’ to <br>
‘sword::SWModule*" on building. So I'm wondering what the best way to go <br>
through each entry in a module.<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</blockquote></div>