Now the record is deleted on archive but when save the array on dbf make error
the error
TO save a xbrowse ( with array with 31 record + "recno()") I made
Check if there are deleted records
save on first record the code (oRec:codRep) and save on 29 record the counter "00001"
save on archive ( here make the error )
the error
Error description: Error BASE/1102 Argument error: UPPER
Args:
[ 1] = A {"00003",4.10,11.00,17.60,0.90,.T.,0,16777215,.F.,"molto fine ","1234567890123 ... } length: 32
Stack Calls
===========
Called from: => UPPER( 0 )
Called from: .\source\function\DBFFUNC2.PRG => (b)FW_SAVEARRAYTODBF( 879 )
Called from: => ASCAN( 0 )
Called from: .\source\function\DBFFUNC2.PRG => FW_SAVEARRAYTODBF( 879 )
Called from: .\source\classes\DATABASE.PRG => TRIGHEMODULI:HB_EXECFROMARRAY( 0 )
Called from: .\source\classes\DATABASE.PRG => TRIGHEMODULI:FW_SAVEARRAYTODBF( 1624 )
Called from: TEST.PRG => TESTDEL( 131 )
Called from: TEST.PRG => MAIN( 26 )TO save a xbrowse ( with array with 31 record + "recno()") I made
Check if there are deleted records
if ! Empty( oBrowse:aDeleted )
AEval( oBrowse:aDeleted, { |a| a[ 32 ] := -a[ 32 ] } )
oDbfMod:SaveArrayToDBF( cItemFlds, oBrowse:aDeleted )
endifAEval( aDataForm, { |a| a[ 1 ] := oRec:codRep } )
AEval( aDataForm, { |a,i| a[ 29 ] := strzero(i,5) } )oDbfMod:FW_SaveArrayToDBF( aDataForm,cItemFlds,,.t. )Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com