[sword-devel] Getting entry by key for a lexicon module.

David "Judah's Shadow" Blue yudahsshadow at gmx.com
Mon Jan 3 13:29:50 EST 2022


Ok. So I'm looking at getting a specific key for a lexdict module. I tried the
same as I do for bibles/commentaries.

sword::ListKey refRange;

refRange = key.parseVerseList(reference.c_str(), key, true);
for(refRange = sword::TOP; !refRange.popError(); refRange++) {
        module->setKey(refRange);
        text += " ";
        text += module->getKeyText();
        text += " ";
        text += module->stripText();
}

But I can only seem to get the last entry of the module.. I can't find any
examples to go by for what I am doing wrong or how to do a lexicon with a
single key.




More information about the sword-devel mailing list