>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 :(
"Member is Unknown: GRID1" or message like that means either that Grid1 doesn't exist (i.e. its .name property) or in the hierarchy you've specified.
Has your form a pageframe, and pages, upon which the grid resides? so that the drill-down to it would be like:
thisform.pgfYourPageFrame.Page1.grid1
Sometimes you think you've dropped an object on a page, for ex., but have forgotten to select-edit the page, so the object gets dropped on the base form, but looks as if it's on the page.
As to specifying the hierarchy "path" to an object, you can, anywhere, include the FULL path, as in the ex. above, or just relative from where you are, e.g. this.grid1., or up the hierarchy, e.g. this.parent.column1,txtText1.
BTW, check you didn't name the grid "GR1d1" by mistake.
Why not post the snippet of code that gives the error, along with any other info to support diagnosis.
HTH
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.