Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get collection of opened tables in form DE
Message
From
04/08/2004 06:06:01
 
 
To
03/08/2004 05:15:42
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00930269
Message ID:
00930593
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform