Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating view programmatically
Message
 
À
23/10/2001 11:33:24
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00572083
Message ID:
00572093
Vues:
34
>1) Is it very complicated to create views programatically?

The number of properties (view level and field level) to set is rather larger, but other than that creating the view programatically is not complicated.

Take a look at the program GenDBC that comes with VFP. This program reads your DBC and creates a program file (PRG) to regenerate all views and tables in your database. What I usually do is: (a) Create a basic view with VFP view designer, (b) run GenDBC to get the bulk of the code to generate the view programatically and (c) modify the code manually to add more stuff to the view.



>2) Is it worth the trouble? That is, perhaps there are too many problems involved, or perhaps there are better ways to do it.
I usually have a combination of techniques: simple views with the VFP view designer and complex views programatically.
Hector Correa
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform