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:13:54
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
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:
01164705
Views:
12
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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform