Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if current SELECT() is a table or a view?
Message
From
21/07/1999 17:09:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244334
Message ID:
00244393
Views:
13
>>Is there a way to know if the current select() is a table or a view and if there is uncommitted changes in it?
>>
>>thanks
>>eric.
>
>If a view or cursor, DBF() will return a temp file name with a .TMP extension and the path will the return value of GetEnv("TEMP"). If not a free table:
>
>llRetVal = (indbc(alias(), "table") or indbc(alias(), "view"))
>
>If llRetval is TRUE, then the alias is a table or view. You can also use Cursorgetprop("buffering") to see if the table is buffered [a view is always buffered]. Then, if a view or the table is buffered, you can use GetNextModified() function to see if there are any uncommitted changes.

I think another way is to use ADBOBJECTS(myarray,"view") and then ASCAN().
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform