Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically add fields
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01330138
Message ID:
01330143
Views:
33
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform