>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement