Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointers on empty cursors/tables
Message
From
02/02/2004 10:55:08
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00872917
Message ID:
00872975
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform