Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table or Cursor
Message
From
24/03/2009 15:26:33
 
 
To
23/03/2009 12:06:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01390685
Message ID:
01391156
Views:
50
Hi Gregory,

(1) IsTable = !empty(cursorgetprop('DataBase', m._alias)) and inlist(Cursorgetprop('SourceType', m._alias), DB_SRCTABLE)

(2) IsView = !empty(cursorgetprop('DataBase', m._alias)) and !inlist(Cursorgetprop('SourceType', m._alias), DB_SRCTABLE)

That was clever from you to use CursorGetProp.

I had made extensive tests,
(1) IsTable() in your example is not giving true result all the time.

(2) Is giving true result all the time and in all cases

Thanks. Appreciated.
Previous
Reply
Map
View

Click here to load this message in the networking platform