I think this could be a good one. I have certainly never seen it before so if anyone has could they help please.
First of all, I am looking at someone elses code and so that won't help. This is a form with a grid on it which, when double clicked, should go off, create a readwrite cursor using a sql statement, select the cursor add some data to it and then go off and run a report. I have also seen this here on another form as well, but I'm sure this will do as a starter for ten.
Anyway. The sql certainly creates the cursor with the desired records in it so that's fine.
The form just doesn't seem to select anything, either this cursor or an actual table and SELECT() always returns 1.
SELECT tablename doesn't work, neither does selecting the workarea you get by nSEL=SELECT(tablename) and then using SELECT(nSel).
I have thought about the environmernt and ASESSIONS() tells me there is only 1 session running so it should be visible, you CAN select it if you stop the form and run the command in the command window. If I step it through the debugger it works perfectly so I am a bit confused now. Any help will be gratefully received. Thanks.
First of all, I am looking at someone elses code and so that won't help. This is a form with a grid on it which, when double clicked, should go off, create a readwrite cursor using a sql statement, select the cursor add some data to it and then go off and run a report. I have also seen this here on another form as well, but I'm sure this will do as a starter for ten.
Anyway. The sql certainly creates the cursor with the desired records in it so that's fine.
The form just doesn't seem to select anything, either this cursor or an actual table and SELECT() always returns 1.
SELECT tablename doesn't work, neither does selecting the workarea you get by nSEL=SELECT(tablename) and then using SELECT(nSel).
I have thought about the environmernt and ASESSIONS() tells me there is only 1 session running so it should be visible, you CAN select it if you stop the form and run the command in the command window. If I step it through the debugger it works perfectly so I am a bit confused now. Any help will be gratefully received. Thanks.