Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Class, Creating button
Message
 
 
À
22/09/2004 15:12:16
Justin Roper
The Cadle Company
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00945170
Message ID:
00945241
Vues:
15
Justin,

You basically can't do this the way you are wanting.

The forms need to be two completely independent entities.

create formB as form ... drop controls on it

create formA as form

drop a button on it
in it's click method:
do form FormB

now run FormA ( you can click the ! button from the standard toolbar in the designer), then click the button your formB will now be running.

> I am trying to create a form from within a form. I can create the form and I'm able to create the buttons but I can't assign any code to the new button's CLICK Procedure. I tried using the DEFINE CLASS within the CLICK procedure on the button that creates the second form however I just keep getting an error (Methods and events cannot contain nested procedures or class definitions ). Can anyone help me with this?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform