Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADDOBJECT
Message
De
15/09/1999 11:37:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/09/1999 11:18:52
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00264974
Message ID:
00264999
Vues:
18
>How can I make the AddObject function accept a variable for the object name?


for ix = 1 to 10
*  lcNewName = "myButton"+padl(ix,2,"0")
<del>*  thisform.addobject(lcNewName)</del>
*  thisform.addobject(lcNewName, "CommandButton")
*or 
<del>  thisform.addobject("myButton"+padl(ix,2,"0"))</del>
  thisform.addobject("myButton"+padl(ix,2,"0"), "Commandbutton")
  with eval("myButton"+padl(ix,2,"0"))
   .Top = .Height * (ix-1) + 5
   .visible = .t.
  endwith
endfor
cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform