Versions des environnements
>>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).
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement