Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment and Views
Message
 
À
14/07/1998 13:37:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117227
Message ID:
00117261
Vues:
17
Ho Bob,

Unfortunately, the Controls collection is not there in the DE. It should have been there though...

Developers who use programmatic DE end up implementing the tables(), views() and relations() collections or just the Controls() collection.

>>Hi All --
>>
>>Does anyone know of a way to programmatically scan through cursors in a visually-created DataEnvironment and determine which are views? I have a clunky way of doing it but I'm sure that someone else has a much better way.
>>
>>Thanks.
>
>I don't have any code, and don't know you 'clunky' way... so, just a few thoughts...
>
>Isn't the DE a subclass of a container? This container contains cursor objects and/or relation objects.
>
>So, the DE shoule inherit all the containers properties such as .controlcount and .controls(index)
>
>So.. could you loop through the controls property array, and look at the .controls(index).name
>
>Ok... now that you have the name of the cursor you can look at the SourceType using CURSORGETPROP() ???
>
>Now, I haven't tried all this, but I think it is a feasable approach? What was your method?
>
>BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform