Mike,
::o.
How to start.
First you need to learn how to adress an object. I can't do that - my english is to poor.
But lets see if we get an reference to your grid
Run the form
suspend it (the form is runing and you can execute code in command window)
start debugger
CLick in command window then move the mouse over the upper left corner of the grid (the little gray area) and leave it.
enter in command window
loa=SYS(1270)
?loa.class
?loa.recordsource
?isreadonly(loa.recordsource)
now you can enter "loa" into your watch window and check the properties.
post the result
Agnes
>My grid has a Name property of "Details". So in the debugger I entered IsReadOnly(Details.recordsource) into the Watch window. It says Expression could not be evaluated. Do I have to indicate the form name too, like IsReadOnly(my form's name.Details.recordsource) ? I tried that, but same result.
>
>Earlier (before I renamed grid's Name property) I got an error message "Member is Unknown: GRID1" if I tried to put "ThisForm.Grid1.refresh" into either the grid's Init or When methods. So I guess I am clueless about OO in VFP :) One thing I found in the VFP help says ThisForm can only be used in a form's method. Does that mean a grid's Init or When are not methods?
>
>
>Totally, totally confused :(
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]