Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Cursor Objects In The DataEnvironment
Message
From
08/07/1998 16:47:34
 
 
To
08/07/1998 16:36:27
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00115475
Message ID:
00115478
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform