Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record pointers on empty cursors/tables
Message
De
02/02/2004 10:55:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00872917
Message ID:
00872975
Vues:
23
>I would simplify it a little bit
>
IF NOT EMPTY(cAlias)
>    SELECT (cAlias)
>    IF BETWEEN(nRecNo, 1, RECCOUNT())
>        GOTO (nRecNo)
>    ENDIF
>ENDIF
>
Since the university, I have learned.. This is not politically correct (to test negative conditions).. The correct way in structured programming is to test their positive values and enter into the "otherwises"..

I taught this for years in my class..

Becomes easier for maintenance of others, and the processor "lives" better well integrated with your application..

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform