Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment and Views
Message
De
14/07/1998 13:37:04
 
 
À
14/07/1998 12:54:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117227
Message ID:
00117248
Vues:
20
>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