Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need book to migrate fast from FPW26 to VPW30.
Message
De
10/04/1997 08:42:57
 
 
À
08/04/1997 16:19:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00026352
Message ID:
00027760
Vues:
60
>>I need some code if you do not mind.
>>I need some code that will SHOW a FORM if it detects the FORM is already
>>in memory. thanks
>
>Simplified cheaters method:
>Assume you've got the object reference to your form in a variable called oForm. Then you can say:
>
>IF TYPE("oForm")="O" .AND. !IsNull(oForm)
> oForm.Show()
>ENDIF
>
>Even fancier would be:
>IF TYPE("oForm")="O" .AND. !IsNull(oForm)
> oForm.Show()
>ELSE
> DO FORM MyForm ;
> NAME oForm
>ENDIF
>which would instantiate the form if it did not exist.
>--------
>David M. Stowell
>D. M. Stowell Consulting
>

Hi David... thanks for the code.. here is my code and every time I call
the FORM from the CLICK EVENT of a button, it creates the FORM again. The way I am getting around this is to turn the button off once the FORM has been called. Is there a reason why the below code does not work?

In the CLICK EVENT of the calling button:
if type("myform") = "O" .and. !isnull(myform)
myform.show ( I have also used ... myform.show() )
else
do form myform
endif

thanks - rob
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform