Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Class, Creating button
Message
 
 
To
22/09/2004 15:12:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00945170
Message ID:
00945241
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform