Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid data source
Message
From
16/08/1998 21:15:10
Alhad Marathe
Asm Consulting
Mumbai, India
 
 
To
16/08/1998 15:54:12
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00127200
Message ID:
00127293
Views:
26
>Thanks, I got the grid to display my cursor ok. Now when I try to edit the data I get an error saying that the record is read only...
>
>I can't find where to set it to read-write. I am using a SQL to populate the cursor.
>
>SELECT Equipdesc.assetid, Equipdesc.location, Equipdesc.area_id, 0000.0 AS meter;
> FROM equipment!equipdesc;
> WHERE Equipdesc.meter_equiped = .T.;
> ORDER BY Equipdesc.location, Equipdesc.area_id;
> INTO CURSOR curMeters
>ThisForm.Grid1.RecordSource = ThisForm.Grid1.RecordSource

John,

Sorry I forgot to tell you, you cannot use select to populate the cursor. That creates a read only cursor. use select and create an array. Then append from an array to the cursor. The cursor has to be created using 'CREATE CURSOR' command before the form is fired.

Alhad
Only direct experience is Knowledge;
Everything else is just Information.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform