Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically add a table to a view?
Message
De
15/07/1998 00:01:43
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116567
Message ID:
00117456
Vues:
20
>Larry,
>
>You lost me about "adding the parent table(view). Are you talking about the view designer? the DE of a form? the database designer? or maybe the table designer?
>
>>Thanks again for the input. I wanted to add the parent table (actually another view) to the child view in the database like you can in the view designer. You would think that the DBSETPROP(childview,'view',tables,...) would do it, but it does not.

I want to create a single view that contains all the tables and views that I need to add and edit parent and child records. Using the view designer, I created a view for the parent table and saved it. I then created a new view for the child table. In my child table view I was able to add the parent table view as an "additional" table, so that when I open the child view, the parent view is automatically opened as well. The question is how can I do this progammatically so that I can re-create the views (typically for a new "company") in my application. The reason that I need to do this is that the origingal DBC is part of a proprietary app that is generated for each company (i.e. new data set stored in a different folder). In order to include my modifications, I have to parse the DBC, and test it for my views. If they are not there I need to be able to programmatically create them.
//:^)
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform