Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create an SQL view in a prg
Message
De
05/06/1998 12:11:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00105076
Message ID:
00105201
Vues:
71
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform