Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create local views programmatically
Message
From
18/05/2009 07:26:03
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
18/05/2009 07:08:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01400362
Message ID:
01400368
Views:
56
>>Hi,
>>
>>A VFP database has remote views into a btrieve database. Some views pull all data from one table and some filter and join data from more than one table.
>>
>>I want to create a snapshot of the data in a new DBC. Views that pull all data become VFP tables and parameterized remote views become parameterized local views. The first are easy (thank you Dragan), but how do I create local views programmatically?
>>
>>TIA,
>Hi Alex -
>
>I agree with Agnes - you can create a test database, add a test table, then create a test view in the View Designer.
>Then you can run gendbc.prg, shipped in the Home() folder, to get the Create View statement, and all required DbSetProp() lines.
>(FWIW, most of the latter just confirm default values and thus may be superfluous).
>
>
>hth
>-Stefan

Hi Stefan,

You don't need GenDBC. Just rightclick the the View designer, choose "View SQL"

Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform