Hello,
I’ve got a form, on it a grid, behind the grid there is a cursor with 4 fields. The grid has 2 textfields (std) within his columns, and one column with a checkbox. When the afterrowcolchange event is triggered there is called a procedure that looks like this:
local nId
select (thisform.myGrid.recordSource)
nId = field1
nId = thisform.oBusiness.getNextValue(nId)
select (thisform.myGrid.recordSource)
replace field4 with nId && Not visible field in the grid, error occurs here
The error occurs here, and in VFP 6.0 SP5 the error is: Cannot update because an user has locked the record
After searched every where on the web and the knowledge base I'm very desperate and tried it with VFP 8.0 and this returned an other error on the same line (statement):
Cursor cannot be modified because it contains an unsaved record.
How can I save the data to the cursor explicit?
Is there anyone who has ever had the same problem?
If there is someone who knows anything to help PLEASE???
Thanks in advance,
Charl
I’ve got a form, on it a grid, behind the grid there is a cursor with 4 fields. The grid has 2 textfields (std) within his columns, and one column with a checkbox. When the afterrowcolchange event is triggered there is called a procedure that looks like this:
local nId
select (thisform.myGrid.recordSource)
nId = field1
nId = thisform.oBusiness.getNextValue(nId)
select (thisform.myGrid.recordSource)
replace field4 with nId && Not visible field in the grid, error occurs here
The error occurs here, and in VFP 6.0 SP5 the error is: Cannot update because an user has locked the record
After searched every where on the web and the knowledge base I'm very desperate and tried it with VFP 8.0 and this returned an other error on the same line (statement):
Cursor cannot be modified because it contains an unsaved record.
How can I save the data to the cursor explicit?
Is there anyone who has ever had the same problem?
If there is someone who knows anything to help PLEASE???
Thanks in advance,
Charl