Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointers on empty cursors/tables
Message
From
02/02/2004 09:46:08
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00872917
Message ID:
00872929
Views:
23
>It's not going to work because RECNO() = 1 for empty table/cursor.
>
Hi Sergey;

Is there anything wrong with this code ?
cAlias = ALIAS()

nRecNo = RECNO()


*Do Something


if  empty(cAlias)
else
    SELE (cAlias)
    if  nRecNo <> 0 .and. nRecNo =< reccount()
        GOTO nRecNo
    endif
endif
I'm asking you because.. IMO, this is the right stuff for Jay.. Don't you thing so ?

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
Next
Reply
Map
View

Click here to load this message in the networking platform