Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort on Form Init
Message
 
À
12/12/2008 14:37:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01366984
Message ID:
01367043
Vues:
9
>I've snipped some code that doesn't quite seem right..........
>SELECT fac_mas
>SET ORDER TO operator
>GO TOP
>   .
>   .
>   .
> *** We are at the top, remember GO TOP command :-)
>thisform.cmdback.enabled = .F.
>thisform.cmdbeg.enabled = .F.
>IF (RECNO() == RECCOUNT())
>   *** That is just in case you have only one record in the table
>
>Wouldn't this also be true if the last physical record is the first indexed record? Better, I think, is something like
>SKIP
>IF EOF()  && only one record in table
>etc.
>

Yep, it would :-)
both:
1. it would be true if the last record is the first
2. it would be better to use SKIP and IF EOF() :-)

As I said: I hate wizards, the add bunch of useless code and make it hard to maintain after that :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform