>>>>Hi everybody,
>>>>
>>>>I recall there were some issues of using return statements within with /endwith blocks. Can you point me out to some related blogs and is it still considered a bad practice to use them?
>>>>
>>>>Can they lead to VFP9 crashes (especially since there is ActiveX involved)?
>>>>
>>>>Thanks in advance.
>>>
>>>
>>>
http://doughennig.blogspot.com/2006/04/dont-return-inside-with.html>>
>>Thanks, Tore. Perhaps this may be one of the problems here, which we may want to eliminate. Although it's a bit tricky given that lengthy code.
>
>I hope you use Thor? One of the Thor tools will give you a list of the places where you have a Return within a With-Endwith construct. It can even fix it for you.
"Fix it for you"? Since multiple RETURNs is one sign of spaghetti logic, how can Thor "fix" it in the general case?
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up