Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it a Table or View?
Message
De
16/01/2001 20:05:14
 
 
À
16/01/2001 19:57:47
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00464461
Message ID:
00464489
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform