[futurebasic] Re: [FB] Filter Answer

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2003 : Group Archive : Group : All Groups

From: mckernon <mckernon@...>
Date: Sat, 15 Feb 2003 23:48:51 -0500
>   select asc(k)
>     case > asc("9") : exit fn
>     case >= asc("0"), 8, 127, 28, 29, 30, 31
>     case asc(".")
>       if instr(1, cStr, ".") then exit fn
>     case asc("-")
>       if instr(1, cStr, "-") or WINDOW(_selStart) then exit fn

Hmmm... Staz has always told me that doing things like "EXIT FN" in the 
middle of a structure like SELECT/CASE would do dire things, like hose 
memory. So I've rewritten all of my code so that it sets a flag, then 
uses an EXIT CASE statement, then EXIT FN at the end of the SELECT/CASE 
if the flag is set.

Or is EXIT FN actually OK to use at any time?

Inquiring minds want to know...;)

- John


===  John McKernon Software  ===
==   mckernon@...   ==
==      www.mckernon.com      ==