Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting records using SQL Delete in Grids
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00538999
Message ID:
00539962
Vues:
10
>I just created a test form with a grid and a button with following code in the button click
Select Prod1
>Delete
>Skip
>This.Parent.Grid1.Refresh()
and it works. I can delete any record I want.
>

Sergey,

Instead of skip have you tried go recno() as I originally suggested? Otherwise your skip should be surrounded with if !eof() skip endif.

BTW, Henry, why your name is Ravi? :)


>>Thanks Sergey. It works - but if I try deleteing another record after the triggering the delete event once, nothing happens, i.e., the second record that I was trying to delete was not deleted nor was it marked for deletion in the table.
>>
>>- Ravi
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform