Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From the Visual Designer to Code
Message
 
 
À
19/08/2004 18:02:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00934498
Message ID:
00934695
Vues:
28
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform