Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie - can't edit recs in grid (The record is read-onl
Message
From
26/10/2006 10:00:10
 
 
To
26/10/2006 09:34:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01164636
Message ID:
01164700
Views:
8
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform