Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show the total records of a view
Message
From
15/06/2002 15:50:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to show the total records of a view
Miscellaneous
Thread ID:
00668935
Message ID:
00668935
Views:
48
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?
Antonio Carlos Kleinübing
Systems Analyst
Next
Reply
Map
View

Click here to load this message in the networking platform