Information générale
Catégorie:
Codage, syntaxe et commandes
>In one deleted method I count and then go to the record selected and DELETE, but it doesn’t deleted anything. So I got rid of the COUNT and went back to RECCOUNT and all was fine again.
COUNT moves the record pointer to EOF because it looks at every record. So, either store and restore the record pointer before and after the COUNT, or use and SQL SELECT instead, checking the RECCOUNT of the result, or the better yet the _tally system variable.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement