Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an SQL view in a prg
Message
From
05/06/1998 12:11:58
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00105076
Message ID:
00105201
Views:
72
>Hi Sylvia,
>
>The easiest thing to do is create as much of the view as possible in the view designer, set all of the update properties, etc. Once you've done that run GENDBC against the DBC that contains the view. If you search the the prg generated by GENDBC for your view name you'll find the CREATE SQL VIEW statement followed by all of the necessary DBSETPROP calls. Copy all of this code to a new .PRG file, edit to your heart's content and then run it.

Mike -

Thanks. That's a good idea - basically a variation of Dave's where he adds all those properties or changes then with Dbviewprop. I hadn't thought of using Gendbc in this way, but then again, I hadn't thought of a lot of the ideas I get from this great group of people:)!

Sylvia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform