Hi all. I don’t know if it’s a feature, but it’s the first time I notice that.
I have a table called “tblMain” with 100 records in it. Here is the structure;
If I do;
VFP create an empty cursor : _TALLY = 0, but EOF() = .F.
If I try
It returns “Admin”
If I select the tblMain table, browse and select let’s say, the third record, “?Tb_Desc” will return “Other”. I select back “crsTbl, “?Tb_Desc”, returns “Admin”
It’s not really a problem for me because I always verify _TALLY >0 after a cursor creation, but is it normal behaviour for cursors?
Thanks
Nro
I have a table called “tblMain” with 100 records in it. Here is the structure;
Code:
Tb_Code Tb_Desc
1 Admin
2 Users
3 Other
4 Guest
If I do;
Code:
Select * from tblMain where Tb_Code = -999 into cursor crsTbl
VFP create an empty cursor : _TALLY = 0, but EOF() = .F.
If I try
Code:
?Tb_Desc
It returns “Admin”
If I select the tblMain table, browse and select let’s say, the third record, “?Tb_Desc” will return “Other”. I select back “crsTbl, “?Tb_Desc”, returns “Admin”
It’s not really a problem for me because I always verify _TALLY >0 after a cursor creation, but is it normal behaviour for cursors?
Thanks
Nro