Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toggle two screens
Message
From
04/11/2005 09:54:43
 
 
To
01/11/2005 14:28:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064148
Message ID:
01065430
Views:
30
Yes, you can't add a form to a form.

oForm = CreateObject("form")
oForm.AddObject("oForm2","form")

gives you the same error. A form isn't allowed to have a parent object other than a formset.

But why do you want to put form2 into form1? To reuse the datasession? simply set the Datasession property of your form2 class to 0 - standard datasession, then it will scope into the same datasession the object has, which creates the form. And then don't add the second form, but simply do thisform.oSecondform = Createobject("form2").

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform