Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From the Visual Designer to Code
Message
 
 
To
19/08/2004 18:02:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00934498
Message ID:
00934695
Views:
30
Jose

Then just do a series of AddObject() calls to build it on the fly from your other form design data:
oForm = createobject( "form" )
for i = 1 to 10
   lcName = "txt" + transform( i )
   oForm.AddObject( lcName, "textbox" )
   oControl = eval( "oForm." + lcName )
   with oControl
      .Top = i * 25
      .Visible = .t.
   endwith
endfor
There's no need to "use" the prg created by the class browser at all.

>I'm trying to generate my forms dynamically. The idea is to create a base class form with container and generate the controls based on data
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