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

2021-02-23 Thread Troy A. Griffitts
So, in your first example, you are attempting to assign the module pointer to TOP and increment the module pointer, instead of the module.  You could change that for loop to this and it should work: for ((*module) = sword::TOP; !module->popError(); (*module)++) { ... } On 2/23/21 2:53 PM, David

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

2021-02-23 Thread David "Judah's Shadow" Blue
On Tuesday, February 23, 2021 1:47:27 PM EST Greg Hellings wrote: > 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... A variant of that worked. But now I'm

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

2021-02-23 Thread Greg Hellings
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 < yudahssha...@gmx.com> wrote: > I'm wanting t

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

2021-02-23 Thread David "Judah's Shadow" Blue
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 conve

[sword-devel] Suggested enhancement to emptyvss

2021-02-23 Thread David Haslam
Please see my proposed idea at https://tracker.crosswire.org/browse/MODTOOLS-106 Best regards, David Sent with ProtonMail Secure Email. ___ sword-devel mailing list: sword-devel@crosswire.org http://crosswire.org/mailman/listinfo/sword-devel Instru