Cannot update ADODB.Recordset while cursor, created by CursorAdapter.CursorFill method, is not attached to a CursorAdapter object. (Error 2082)No help do Fox a solução indicada reatachar o cursoradapter ao objeto mas não estou conseguindo fazer isso vc pode meajudar ?
>>* como teste o parametro pStringSql = 'select * from <tabela>' >>* o pStringSchema = 'datanasc D' >>>>
>> >> IF VARTYPE(.loCad) <> "O" >> .loCad =CREATEOBJECT("CursorAdapter") >> ENDIF >> >> WITH .loCad >> .DataSourceType = 'ADO' >> .DataSource = This.lors >> .Alias = pCursorName >> .SelectCmd = pStringSql >> .UpdatableFieldList = pStringUpdate >> .Updatenamelist = pStringName >> .CursorSchema = pStringSchema >> .Buffermodeoverride = 3 >> .AllowInsert = .T. >> .Allowupdate = .T. >> .AllowDelete = .T. >> .Sendupdates = .T. >> .CursorStatus = 1 >> IF !.CursorFill() >> RETURN .F. >> ENDIF >> .CursorRefresh >> ENDWITH >> Endwith >>