Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Views in Data Environment Programmatically
Message
From
06/11/2001 04:52:32
 
 
To
06/11/2001 04:44:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00577832
Message ID:
00577834
Views:
17
Hi!

Data environment is used to open views/tables when form starts. When you create form programmatically, no need in this - you can just open all views/table programmatically too without any limitations. Just look to the USE command in the help - it openss views and tables by a command.

To create form programmatically - its depended on what you're going to do. Usually it is enough to create a form class, put controls on it, add code to Init event to open required views and tables and add any other code required. Then

m.oMyForm = createobject("MyFormClass")
m.oMyForm.SHOW()

Note that if form is not modal, you require to make oMyForm variable public.

HTH.

>Hi all,
>
>How can I create a form programmtically and add some views also programmatically.
>
>Thanks in advance
>
>Peter
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform