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

2021-02-25 Thread Troy A. Griffitts
This example might be useful: https://crosswire.org/svn/sword/trunk/examples/tasks/simpleRange.cpp On 2/25/21 10:57 AM, David "Judah's Shadow" Blue wrote: > On Thursday, February 25, 2021 10:17:07 AM EST Troy A. Griffitts wrote: >> SWBuf verse = ""; >> >> verse = "jn.2.2"; >> >> for (verse.size(

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

2021-02-25 Thread David "Judah's Shadow" Blue
On Thursday, February 25, 2021 10:17:07 AM EST Troy A. Griffitts wrote: > SWBuf verse = ""; > > verse = "jn.2.2"; > > for (verse.size() ? module->setKeyText(verse) : (*module) = sword::TOP; > !module->popError(); (*module)++) { Hmmnow I need to decide if I want to go outside of my package mana

Re: [sword-devel] Flash cards as a front-end?

2021-02-25 Thread David Haslam
Meanwhile, friends might like to take a look at the memorisation study tool developed by Pierre Amadio for learning Biblical Hebrew and Greek. https://pierre-amadio.github.io/matheteuo/ The source code for this is here https://github.com/pierre-amadio/matheteuo Best regards, David Sent with [

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

2021-02-25 Thread Troy A. Griffitts
SWBuf verse = ""; verse = "jn.2.2"; for (verse.size() ? module->setKeyText(verse) : (*module) = sword::TOP; !module->popError(); (*module)++) { On 2/25/21 7:14 AM, David "Judah's Shadow" Blue wrote: > On Tuesday, February 23, 2021 6:17:57 PM EST Troy A. Griffitts wrote: >> So, in your first exam

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

2021-02-25 Thread David "Judah's Shadow" Blue
On Tuesday, February 23, 2021 6:17:57 PM EST Troy A. Griffitts wrote: > 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) = swor