Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return statements within the with endwith blocks
Message
 
 
À
06/01/2017 16:24:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01646361
Message ID:
01646371
Vues:
48
>>>>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.

I'll take a look at that. I am just wondering if I am barking the right tree or the problem may be something else entirely. It is probably still worth fixing. We have lots of places with return inside with/endwith. This crash report is the first one I am being involved in. I don't know why my company and people here so like to give me escalations / new User Stories on Friday afternoon...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform