Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When it reaches its last record
Message
De
01/11/2006 21:16:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/11/2006 20:53:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01166471
Message ID:
01166474
Vues:
12
>Hi,
>I use timer to navigate the records flow displayed on textboxes where they are read by a microsoft agent, but I am stuck to solve the problem of stopping the timer when the record has reached its last so the result is that the agent keeps reading the last one.How to stop the timer when records have reached the last? Thank you.
>
>Regards
>
>Syah N

When the desired condition is reached, set Timer.Enabled = .F.

The condition itself is a little more complicated. recno() # reccount() is not reliable, since the last record may be deleted, the records may be indexed, or a filter may be set.

I think the only reliable way to see if you are on the last record is to do a skip, and see if you are on EOF(). Then go back to the record that was previously selected.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform