Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where comes a cursor from?
Message
De
15/05/2003 09:16:12
 
 
À
15/05/2003 08:43:40
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00788631
Message ID:
00788658
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>How can I find out what kind a given cursor is?
>
>I like to know if it (Free) Table, a cursor or a View?
>
>TIA
>
>Agnes

Agnes,

CursorgetProp() will tell you a lot. Not complete ..
TableExt = (justext(dbf()) = 'DBF')
InDatabase = !empty(CursorgetProp('Database'))

IsView = ( cursorgetprop('sourcetype') < 3)
IsTable = !IsView

IsFreeTable = IsTable and !InDatabase and TableExt 
IsCursor = IsTable and !InDatabase and !TableExt
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform