Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show the total records of a view
Message
De
15/06/2002 15:50:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to show the total records of a view
Divers
Thread ID:
00668935
Message ID:
00668935
Vues:
47
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform