Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get A List Of DE Objects
Message
From
01/03/2008 00:29:30
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01295631
Message ID:
01297942
Views:
9
Kevin,

>Is there any way to get a list/array of the names of objects in a form or report's Data Environment?

The DE has a Objects property which is just that in that it allows you to access its members cursors, CAs, relation etc...

You can try it out by putting a commandbutton in your form (which has tables in its DE of course) to call the code below:
LOCAL loObject

FOR EACH loObject IN ThisForm.DataEnvironment.Objects
    ACTIVATE SCREEN
    ? loObject.Name, loObject.Class, loObject.BaseClass
ENDFOR
HTH,
Dennis
Previous
Reply
Map
View

Click here to load this message in the networking platform