<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To all that replied, thank you very much. &nbsp;<div><br></div><div>Nancy, you were right. &nbsp;I had a few misplaced screen commands that I believe were allowing the gosubs to pile up. &nbsp;I have fixed those and have not had any further recurrence of the issue.</div><div><br></div><div>Kenneth, &nbsp;are you sure about 64 nested gosubs? &nbsp;I have the manual for 5.7 and it still states that the there is a 16 nested gosubs. &nbsp;thank you very much</div><div><br></div><div><br></div><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">James Flanagan</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="text-decoration: underline; "><a href="http://Flantec.com/">Flantec.com</a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">email:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:James@Flantec.com"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">James@Flantec.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">mobile:<span class="Apple-tab-span" style="white-space: pre; ">        </span>760-458-8498</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">home:<span class="Apple-converted-space">&nbsp;</span><span class="Apple-tab-span" style="white-space: pre; ">        </span>219-221-6219</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">text:<span class="Apple-tab-span" style="white-space: pre; ">                </span><a href="mailto:7604588498@txt.att.net"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">7604588498@txt.att.net</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">aim:<span class="Apple-tab-span" style="white-space: pre; ">                </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">oovoo:<span class="Apple-tab-span" style="white-space: pre; ">        </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">Skype:<span class="Apple-tab-span" style="white-space: pre; ">        </span>Flantec</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(0, 106, 227); "><span style="color: rgb(121, 121, 121); ">ichat:<span class="Apple-tab-span" style="white-space: pre; ">        </span><a href="mailto:Flantec@mac.com"><span style="text-decoration: underline; color: rgb(0, 106, 227); ">Flantec@mac.com</span></a></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); min-height: 14px; "><br></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); ">home:<span class="Apple-tab-span" style="white-space: pre; ">        </span>1901 Cidermill Road</div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: Helvetica; color: rgb(121, 121, 121); "><span class="Apple-tab-span" style="white-space: pre; ">                </span>Michigan City, IN 46360</div></span>
</div>
<br><div><div>On May 31, 2013, at 4:19 PM, Nancy Palmquist &lt;<a href="mailto:nlp@vss3.com">nlp@vss3.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">James,<br><br>This is usually not the real issues.<br><br>gosub one<br> &nbsp;&nbsp;&nbsp;&nbsp;gosub two<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gosub three<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br>return<br>return<br>return<br>that would be real nesting.<br><br>What is more likely is a bad use of gosub from @WHEN processing. &nbsp;&nbsp;I see <br>this much more often.<br><br>What happens is that the GOSUB routine, contains a command that stops <br>the routine before it gets to the RETURN. &nbsp;Leaving the gosub hanging but <br>not executing.<br><br>@wlfxx: &nbsp;gosub one<br>one &nbsp;- has a SCREEN command ( most likely) &nbsp;&nbsp;- this would stop execution <br>of the @wHEN so it would never close the routine. &nbsp;You do this a few <br>times and you get your too many nested routines.<br><br>If you need to have a SCREEN command - close the gosub and put the <br>SCREEN command as the next line in the @WHEN logic.<br><br>I hope that was clear enough. &nbsp;I will be glad to expand if you do not <br>follow. &nbsp;I know you are new to filePro.<br><br>Nancy<br>RETURN<br><br><br>On 5/30/2013 8:59 PM, James Flanagan wrote:<br><blockquote type="cite">All:<br><br>I am new to the group, so if this has been asked and answered previously, it would have been prior to my joining.<br><br>I program filepro using a lot of nest gosubs because i find that it keeps my code very easy to read and review. &nbsp;That said, i am aware of the limit of 16 nested gosubs, and have tried to program within that limitation. &nbsp;However, a client has managed to unearth a particular path of usage that results in the "too many nested gosubs error". &nbsp;However, i have not been able replicate what the client is seeing thus far.<br><br>is there anything like a system maintained field within Filepro that will tell you how many nested gosubs deep you are at a given time that i could show on the screen for debug purposes? &nbsp;If not, does anyone have an idea of how to do something similar to this without having to modify the code at each and every gosub (there could literally be 100's) to add and subtract from a counting variable. &nbsp;Thanks in advance for your contributions to this.<br><br>James Flanagan<br><a href="http://Flantec.com">Flantec.com</a><br><br>email:<span class="Apple-tab-span" style="white-space:pre">        </span>James@Flantec.com<br>mobile:<span class="Apple-tab-span" style="white-space:pre">        </span>760-458-8498<br>home: <span class="Apple-tab-span" style="white-space:pre">        </span>219-221-6219<br>text:<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>7604588498@txt.att.net<br><br>aim:<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>Flantec<br>oovoo:<span class="Apple-tab-span" style="white-space:pre">        </span>Flantec<br>Skype:<span class="Apple-tab-span" style="white-space:pre">        </span>Flantec<br>ichat:<span class="Apple-tab-span" style="white-space:pre">        </span>Flantec@mac.com<br><br>home:<span class="Apple-tab-span" style="white-space:pre">        </span>1901 Cidermill Road<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>Michigan City, IN 46360<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20130530/d8e2c895/attachment.html<br>_______________________________________________<br>Filepro-list mailing list<br>Filepro-list@lists.celestial.com<br>Subscribe/Unsubscribe/Subscription Changes<br>http://mailman.celestial.com/mailman/listinfo/filepro-list<br><br></blockquote><br>-- <br>Nancy Palmquist &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MOS &amp; filePro Training Available<br>Virtual Software Systems &nbsp;&nbsp;&nbsp;Web Based Training and Consulting<br>PHONE: (412) 835-9417 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Web site: &nbsp;<a href="http://www.vss3.com">http://www.vss3.com</a><br><br>_______________________________________________<br>Filepro-list mailing list<br><a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>Subscribe/Unsubscribe/Subscription Changes<br>http://mailman.celestial.com/mailman/listinfo/filepro-list<br></blockquote></div><br></div></body></html>