Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get collection of opened tables in form DE
Message
De
04/08/2004 06:06:01
 
 
À
03/08/2004 05:15:42
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00930269
Message ID:
00930593
Vues:
14
Hi,

>>
I need to know if there's a way to get a collection of all tables opened within the data environment of a form. The tables are opened using code (use tablename share ) and not via the GUI in the Data environment.
>>

If you are opening the tables with 'USE..' they will not be in the dataenvironment - to do that you would need to add them programatically before the DE.OpenTables() occurs. For tables that ARE in the DE something like :
FOR EACH o IN thisform.dataenvironment.objects
  IF o.baseclass = "Cursor"
    ? o.name,o.alias,o.Cursorsource  &&etc.
  ENDIF
ENDFOR
HTH,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform