Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a parent form with a private data session that calls a child form that shows in top level form, also has a private data session, and returns a numeric value. The Init() of the parent form creates a cursor called 'tmpsumm'. When returning from the child form, the parent form tries to SELECT tmpsumm which produces the error "Alias 'Tmpsumm' not found." However, the ON ERROR routine captures all of the aliases used in every data session using AUSED() and I have verified that alias Tmpsumm does in fact exist in a work area.
Put a breakpoint on the line in the parent form that does the SELECT tmpsumm
. When the code breaks, type in SET
in the command window and check that the alias is available.
Is the child form a modal form? If it's modeless, you probably already know that the code in the parent form will continue executing after the child form is shown. It won't pause.
Précédent
Suivant
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