Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Darwin,
Im using this code in the init of my forms
_SCREEN.AddProperty("FormName", THISFORM)
After this step you must your command like this
CloseCommand = "_Screen." + gcCurWind + ".CloseEvent()"
&CloseCommand
Cemal.
>To All,
>
>I need some assistance on this: if I launch a Form from another Form then close the Child Form I get an 'Object objectname not found' error. The objectname displayed is the child form's Name property.
>
>The Windowtype is 0-Modeless for both the parent and child form. Both forms are subclasses of one form class. In their Activate() method I store their form name to a global variable:
> gcCurWind = ALLT(UPPER(THISFORM.Name))
>
>To close a form, the Close button in the toolbar has this code:
> CloseCommand = gcCurWind + '.CloseEvent()'
> &CloseCommand
>
>The .CloseEvent() method has this code:
> RELEASE THISFORM
>
>I issued a command to display: WAIT WIND TYPE(gcCurWind)
>and it displays 'U' (unknown) for the child form.
>
>But if I try to callout the Child Form from the menu pad, it works fine. Am I missing something here?
>
>Please help me on this.
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