Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing the CursorSource in the DataEnvironment
Message
De
09/07/1998 12:28:56
 
 
À
08/07/1998 18:58:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00115080
Message ID:
00115793
Vues:
17
>>Now the only thing I'm having trouble with is determining the
>>Cursor objects within the DE. I've tried AINSTANCE( x, 'Cursor'),
>>This.Controls( I), but don't know how to make a generic reference
>>to all of the member objects in a container (the DE IS a
>>container isn't it?)
>>
>>Thanks again for you help...
>> ...kt
>
>
>start with this:
>
>
>amembers(acursors, thisform.dataenvironment, 2)
>
>for i = 1 to ALEN(acursors,1)
>oDEobj = EVAL("thisform.dataenvironment." + acursors[i])
>if oDEobj.baseclass = "Cursor" && stay away from relations
>    oDEobj.cursorsource = cpathvar + oDEobj.cursorsource
>endif
>
>endfor
>
>
After a note from "Uncle Ed" I modified his suggestion into
something similar to what you have here, except mine ended up
using a macro in setting up the object pointer. I like your
EVAL better <> :)

BTW, don't you think the DE should have some intrinsic for accessing
member objects?

Moochos thanxo for the assist...

...kt
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform