>I made a container that has a command button and a grid in it.
>
>I want to refer to the grid from the command button, but I am unsure how to do that. Do I use something like this::mygrid.property?
>
>How do I know that mygrid won't suffer a name change?
this.parent.mygrid.someproperty
If you change the grid name you would do that in class so change in code too. Otherwise to be free of name you would do something like :
with this.parent
for each oControl in this.controls
if oControl.baseclass = "Grid"
oControl.SomeProperty = Something
exit
endif
endfor
endwith
Cetin