Re: [sword-devel] How to handle text context

2009-04-22 Thread Manfred Bergmann
Yeah, thanks, Troy. I figured something similar but I'm operating on a VerseKey and setting that to the module like: vk.setVerse(vk.getVerse() - context); for(int i = 0;i <= context*2+1;i++) { module.setKey(vk.getText()); if(!module->Error()) { // render

Re: [sword-devel] How to handle text context

2009-04-22 Thread Troy A. Griffitts
Dear Manfred. My apologies for missing this. I actually noticed it and forgot to respond. I believe you just want something simple like: module->setKey("jn.3.16"); for ( module-=(contextSize/2); !module->Error() && contextSize; module++,contextSize--) { cout << module-