Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it a Table or View?
Message
From
16/01/2001 20:05:14
 
 
To
16/01/2001 19:57:47
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00464461
Message ID:
00464489
Views:
17
>Thank you. Something like:
>
>CursorGetProp( "SourceName", alias() )
>
>returns the view's alias. That is part of what I am currently using. Without some hard coded list of view aliases I still can't make the determination of whether it's a Table, View, or Cursor.
>

CursorGetProp('SourceType', ALIAS()) returns a numeric variable that distinguishes the type of record source for an alias. From the VFP Help on CursorGetProp():
SourceType N 1 – Specifies that the data source is a local SQL view.
2 – Specifies that the data source is a remote SQL view.
3 – Specifies that the data source is a table.
Read-Only.


A Cursor is not a member of a DBC(), nor is a free table, so I don't know what referencing such aliases will return, but it's a start point.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform