dc_dbgather()
Posted: Mon Oct 12, 2015 4:38 pm
Hi Roger;
I know you added a codeblock parameter to dc_dbgather() so we could reuse deleted records. If for example I used DC_ADDREC(3,.t.,2)
AS THAT code block would the system attempt to find and ultimately point to a reusable record and then update it.?
Lets assume I have a newly created record object oRecord for file CustMast.dbf. I want to use this record object to ADD a new customer record to CustMast but I want to first search to see if I have a deleted record to reuse.
Would this work?
CUSTMAST->(DC_DBGATHER(oRecord,.f.,.t.{||DC_ADDREC(3,.T.,2)}
I'm assuming DC_ADDREC will be executed first and return a pointer to the record number to be updated by DC_DBGATHER()
looking forward to Arizona. See you on Wednesday night.
Bob Volz
I know you added a codeblock parameter to dc_dbgather() so we could reuse deleted records. If for example I used DC_ADDREC(3,.t.,2)
AS THAT code block would the system attempt to find and ultimately point to a reusable record and then update it.?
Lets assume I have a newly created record object oRecord for file CustMast.dbf. I want to use this record object to ADD a new customer record to CustMast but I want to first search to see if I have a deleted record to reuse.
Would this work?
CUSTMAST->(DC_DBGATHER(oRecord,.f.,.t.{||DC_ADDREC(3,.T.,2)}
I'm assuming DC_ADDREC will be executed first and return a pointer to the record number to be updated by DC_DBGATHER()
looking forward to Arizona. See you on Wednesday night.
Bob Volz