Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling form like a object
Message
De
02/10/2001 16:37:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00563279
Message ID:
00563286
Vues:
27
This message has been marked as the solution to the initial question of the thread.
Hi Ben;

Here we go !!
*In the Init of the form FrmA

procedure frma.init
Public pActiveB, myotherform  && I'll not use pActiveB
pActivB = .f.
endproc

*In the Form FrmA (command button)

procedure mybuttom.click
If type("myotherform.name")<>"C"
   Do form .\ecran\FrmB.scx name myotherform
Else
   myotherform.Caption= "Allo"
   myotherform.Show()
   activate window (myotherform.name)
Endif
endproc
CLAUDIO
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform