Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating view programmatically
Message
 
 
To
23/10/2001 11:41:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00572083
Message ID:
00572121
Views:
30
>>I am considering creating view programatically, instead of saving the definitions in the database. I am not (currently) asking how to do it; I will try to figure it out from the help, first.
>>
>>I think I may gain some flexibility, like having several slightly different versions of a view (say, with different parameters).
>>
>>What I do want to ask is:
>>
>>1) Is it very complicated to create views programatically?
>>
>>2) Is it worth the trouble? That is, perhaps there are too many problems involved, or perhaps there are better ways to do it.
>>
>>TIA, Hilmar.
>
>1) No it's easy :)
>2) Yes for sure :)
>
>You didn't ask this part :
>
>select ... into cursor myCursor
>
>Strip 'into cursor myCursor' clause and add :
>create SQL view as select ...
>
>To create the view. IOW test your SQL first then make it a view.
>
>Create a view in designer first and set its updatable properties. Then run gendbc to get programmatic version of DBC. You could examine extra settings for SendUpdates, KeyFields etc.
>
>And neverthless to say use Evan's 'Eview'.

??????????? Erik Moore's EView? This is actually how I created my first view in code. I created it in View Designer first, then in EView, then saved the code.
>
>PS: Placing a 'force' clause make a view 'unopenable' by designer protecting it from spoiling.
>Cetin

Ok, good to know.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform