<html><head></head><body>That code should work unchanged, but you need to get your key variable from the module itself to be sure you can iterate the entire versification of the module. You can use (VerseKey)module-&gt;createKey() to get it and be sure to delete key when you are done.<br><br><div class="gmail_quote">On August 15, 2015 2:20:39 PM GMT+01:00, &quot;David &quot;Judah&#39;s Shadow&quot; Blue&quot; &lt;yudahsshadow@gmx.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">So, I'm hacking some more on BIBISH, and I'm wondering if my code needs any <br />modification to handle alternate versifications. Essentially, I get a <br />reference from the user, and then iterate over the passage and put it in a <br />string, here's my code. <br /><br />refRange = key.parseVerseList(reference.c_str(), key, true);<br />for(refRange = sword::TOP; !refRange.popError(); refRange++) {<br /> module-&gt;setKey (refRange);<br />        text += " "; //TODO: Fix this to show the book name on the first verse<br />        //TODO: show chap and verse only after the first verse<br />        text += module-&gt;getKeyText();<br />        text += " ";<br />        text += module-&gt;renderText();<br />}</pre><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />sword-devel mailing list: sword-devel@crosswire.org<br /><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br />Instructions to unsubscribe/change your settings at above page</pre></blockquote></div><br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>