>I am using a grid to show a view. The delete mark of the grid is true and the user can click it to delete a record. Each time the user deletes a record I would like to show the number of records remaining on the view. I have the following code in the deleted event of the grid
>
>If DELETED('vw_fitas')
> Thisform.qtrecords = Thisform.qtrecords - 1
>Else
> Thisform.qtrecords = Thisform.qtrecords + 1
>Endif
>Thisform.txtds_message.value = 'Its found ' + LTRIM(STR(Thisform.qtrecords,5)) + ' ocurrences'
>Thisform.txtds_message.Refresh()
>
>The property Thisform.qtrecords is initialized with reccount('vw_fitas')
>
>The problem is that Thisform.qtrecords does not express the correct number of records. It seems that the record is deleted after the deleted event been fired.
>
>What am I doing wrong?
If the record is deleted after the event fires you can just flip your logic and it should work
Chris