Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Object reference to custom buider
Message
De
10/04/2003 12:32:54
Alhad Marathe
Asm Consulting
Mumbai, Inde
 
 
À
09/04/2003 13:15:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00775596
Message ID:
00776190
Vues:
14
Thanks a lot.

Alhad

>>How do I pass the object reference of the grid object to my form?
>
>Don't. Use ASELOBJ() to get a reference to the selected object instead and then work with an object reference instead of the name. This approach also lets you get the macros out of your code.
>
>nCount = ASELOBJ( aGrid )
>IF nCount <> 1 OR aGrid[1].BaseClass <> "GRID"
> * error message that things aren't set up right
>ELSE
> * do your processing referencing the grid as aGrid[1]
>ENDIF
>
>Tamar
Only direct experience is Knowledge;
Everything else is just Information.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform