Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a local view with whatever SQL statement?
Message
From
30/09/1998 13:00:49
 
 
To
30/09/1998 12:46:45
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00142471
Message ID:
00142477
Views:
33
Hi Puri ---

Yes. Open the database and create the view in code.
OPEN DATABASE mydbc
CREATE VIEW myview AS ;
   SELECT * FROM mytable ORDER BY name
Use DBSETPROP("myview","VIEW",{property},{setting}) to modify view settings such as updateable, etc.



>Hi,
> I don't really know whether there is a way of doing this, I want to create a view without using the View Wizard with an SQL statement that I type. From the view wizard, I can see the equivalent SQL statement, but I couldn't edit it. Is there any way of doing this?
>And this view may have parameters and it will be included in DE of a form. I basically want to avoid writing SQL queries(the cursors) in the code and want to keep them in a view.
>
>Please help.
>
>Thanks
>Puri
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform