Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP crashes
Message
From
06/01/2017 19:32:35
 
 
To
06/01/2017 16:02:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01646360
Message ID:
01646380
Views:
60
This message has been marked as a message which has helped to the initial question of the thread.
>>BTW, in the code I see many return statements inside the with thisform block. Can this contribute to the problem?
>
>Shouldn't be... AFAIK, being in a with...endwith block is just a shortcut to change the addressing mode for statements inside the block, basically I guess by creating a temp reference and switching all terms beginning with a dot to use that reference (and it seems to be a private variable, because this also works in anything you call - a procedure can have a bunch of .pem stuff and it would still work). So upon a return that temp variable would just go out of scope. Don't see how that would be damaging now and not at other times.

Back in VFP6 it used to be a problem having RETURNs within WITH .. ENDWITH blocks, but doesn't seem to be a problem in VFP9 however (though I'd probably prefer to code in a manner to avoid it, just in case).
Previous
Reply
Map
View

Click here to load this message in the networking platform