Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EOF() and BOF() - kinda..
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00144378
Message ID:
00144725
Vues:
19
>>
>>IF RECCOUNT() > 0
>> lnCurrRec = RECNO()
>> GO TOP
>> lnTopRec = RECNO()
>> GO BOTTOM
>> lnBottomRec = RECNO()
>>
>> DO CASE
>> CASE lnCurrRec = lnTopRec
>> WAIT WINDOW "At Top Record"
>> CASE lnCurrRec = lnBottomRec
>> WAIT WINDOW "At Bottom Record"
>> OTHERWISE
>> WAIT WINDOW "Someplace in the middle
>> ENDCASE
>>ENDIF
>>

>
>This is a little picky, Craig, but how does this handle a case with all deleted records, so RECCOUNT() > 0?

That was off the top of my head. You could eliminate the RECCOUNT() > 0 and do further testing in the CASE. I use something similar in my framework and don't have a problem.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform