Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number of views open in a datasession
Message
De
29/03/2005 10:17:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
00999701
Message ID:
00999710
Vues:
51
>Hey all,
>
>is there a way to determine the number of views that are open in a datasession ? And is there a way to know in which work area eacht view is opened ??
>
>Greetz,
>Hans

This might help:
lnInUse=aused(arrCursors)
For ix=1 to lnInUse
  lnType = cursorgetprop('SourceType',arrCursors[ix,1])
  ?
  ? 'Info for alias '+arrCursors[ix,1]
  ? '---------------------------------------'
  ? 'DBC       :'+cursorgetprop('Database',arrCursors[ix,1])
  ? 'DBF       :'+dbf(arrCursors[ix,1])
  ? 'DBObject  :'+cursorgetprop('SourceName',arrCursors[ix,1])
  ? 'DBType    :'+iif(lnType=3,'Table',iif(lnType=2,'RemoteView','LocalView'))
  Set database to (cursorgetprop('Database',arrCursors[ix,1]))
  If cursorgetprop('SourceType',arrCursors[ix,1])=3
    ? 'TablePath :'+dbgetprop(cursorgetprop('SourceName',arrCursors[ix,1]),'TABLE','Path')
  Else
    ? 'SQL       :'+dbgetprop(cursorgetprop('SourceName',arrCursors[ix,1]),'VIEW','SQL')
  Endif
Endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform