>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only