Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing Cursor Objects In The DataEnvironment
Message
De
08/07/1998 16:47:34
 
 
À
08/07/1998 16:36:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00115475
Message ID:
00115478
Vues:
13
>If I need to generically access all of the Cursors so that I can
>set the properties (would you believe the CursorSource property?...
>of course you would).
>
>The best I've been able to come up with is using a loop
>coupled with a macro, but I'm hoping that there's a more elegant
>method (that seems so kludgey).
>
>The DE apparently isn't a container object, so I can't use
>Controls(), evidently AINSTANCES() only works with objects
>instantiated with CREATEOBJECTS() OR GETOBJ(), and there
>doesn't seem to be any other property or method to tell you
>how many cursors have been created, nor what their names are.
>
>advTHANKSance...
>
> ...kt
=amembers(myarray,thisform.dataenvironment,2)
for n=1 to alen(myarray)
 cName=myarray[n]
 =messagebox(thisform.dataenvironment.&cName..cursorsource)
endfor
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform