I want to use a cursor for an editable grid object. So I set MULTILOCKS ON, SELECT ... INTO CURSOR MyCursor READWRITE, and change buffering to 5 (optimistic table). When the user changes the WHERE condition, I repeat the SELECT but now the underlying table is different even though the alias is the same. That causes the grid to go bananas.
I read somewhere that I should ZAP my main cursor and APPEND from a temporary cursor for the new where. That works but now VFP thinks that everything's changed.
So, I try to run SetFldState(nFldNumb, 1, 'MyCursor') and get a "Function argument value, type, or count is invalid" error. Now, I'm going bananas. I've checked all variables to make sure that all parameters are correct. Any kind thoughts?
I read somewhere that I should ZAP my main cursor and APPEND from a temporary cursor for the new where. That works but now VFP thinks that everything's changed.
So, I try to run SetFldState(nFldNumb, 1, 'MyCursor') and get a "Function argument value, type, or count is invalid" error. Now, I'm going bananas. I've checked all variables to make sure that all parameters are correct. Any kind thoughts?