Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database container
Message
From
24/02/2004 03:33:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/02/2004 19:04:37
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00880121
Message ID:
00880182
Views:
18
>Hi Everyone,
>
>I have been using DBC with remote view on SQL tables and have been using a routine to set the buffering for all the open view.
>
>But, once the database has been opened is there a way to open all views with some sort of FoxPro function similar to aused() for all files/views used?
>
>I'm trying to do just a select and requery() on the views and would like to eliminate MOST of the checks to see if the view is opened or not.
>
>For example if my DBC has 10 views in it is there a way to know, or issues a
>FoxPro command and open them all?
>
>Thanks, in advance.
>
>Craig
Craig,
You could get all views in a DBC :

Open data myDBC
lnViews = ADBObjects(aViews,"VIEW")

then loop to use them ( use ('myDBC!'+aViews[m.nIndex]) in 0 ) but they might have dependencies like parameters.
Why would you want to open all at once ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform