Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Yousfi Benameur
  Where is Yousfi Benameur?
 El Bayadh
 Algeria
 Yousfi Benameur
 To: one delacruz
  Where is one delacruz?
 
 Botland 2
 one delacruz
Subject: RE: delete a record in cursor
Thread ID: 181943 Message ID: 182123 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Databases, Tables and SQL Server
Date: Monday, July 7, 2008 5:22:35 PM         
   



> Hello everyone
>
> Scenario:
> 1. i have a grid which source is a cursor that has no index
> 2. i have a button for delete
> 3. when user select a record in the grid and click the button delete, it must delete the selected record in the grid
>
> can someone help me on the code for this

YOUSFI BENAMEUR
set deleted is off by default ,put it to set deleted on.

IF YOU HAVE delemark=.t. you can delete visually the records you want .On your form in your button put only in the click event:
thisform.grid1.refresh


if you have deletemark=.f. put this code in buttoncommand.click.the record selected is deleted after the click on button:
sele mycursor
delete
thisform.grid1.refresh


ENTIRE THREAD

delete a record in cursor Posted by Rhea Eva Lopera @ 7/7/2008 6:37:40 AM
RE: delete a record in cursor Posted by Jun Tangunan @ 7/7/2008 6:45:17 AM
RE: delete a record in cursor Posted by surinder singh @ 7/7/2008 6:51:40 AM
RE: delete a record in cursor Posted by Erik Gomez @ 7/7/2008 9:06:18 AM
RE: delete a record in cursor Posted by Marcia Akins @ 7/7/2008 2:42:18 PM
RE: delete a record in cursor Posted by Yousfi Benameur @ 7/7/2008 5:22:35 PM
RE: delete a record in cursor Posted by Christian Tabligan @ 7/8/2008 2:32:33 AM