Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid data source
Message
De
16/08/1998 21:15:10
Alhad Marathe
Asm Consulting
Mumbai, Inde
 
 
À
16/08/1998 15:54:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00127200
Message ID:
00127293
Vues:
22
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform