Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programatically add fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01330138
Message ID:
01330143
Vues:
34
This message has been marked as the solution to the initial question of the thread.
>Sorry, text box and combo boxes in a container
>
>
>>>Can anyone point me in the right direction?
>>>
>>>I need to programmatically add some fields to a container?
>>>
>>>Many thanks
>>
>>Fields in Container?
>>You mean Fields in Table
>>or
>>TextBox in Container?
WITH thisform.ContainerName
     .AddObject([TextBox1], [TextBox])
     WITH .TextBox1
          .Left = ???
          .Top  = ???
          .ControlSource = [????]
          .Value = ????
          .Visible = .t.
     ENDWITH 
     .AddObject([ComboBox1], [ComboBox])
     WITH .TextBox1
          .Left = ???
          .Top  = ???
          .Style = ???
          .ColumnCount = ??
          .BoundColumn = ??
          .BoundTo     = ??
          .ControlSource = [????]
          .Value = ????
          .Visible = .t.
     ENDWITH 
ENDWITH
You could set ALL properties you need BUT don't forget to set VISIBLE = .t.
By default all objects added programaticaly are invisible.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform