Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get A List Of DE Objects
Message
De
01/03/2008 00:29:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01295631
Message ID:
01297942
Vues:
8
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform