Information générale
Catégorie:
Codage, syntaxe et commandes
>My code in the load method looks something like:
>
>on error do err_rtn
>use xxx
>on error
>if err_flg &set in err_rtn
> release thisform
> return
>endif
>
J. Luis came up with the solution to the problem I've been struggle with all day. The correct routine should be:
on error do err_rtn
use xxx
on error
if err_flg
RETURN .F.
endif
I didn't know that returning a '.F.' in an event stops the form. Marc, Dave, Arnon all helped with my understanding of the problem. Big thanks to all.
Paul
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