the error
- Code: Select all Expand view RUN
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
- Code: Select all Expand view RUN
- if ! Empty( oBrowse:aDeleted )
AEval( oBrowse:aDeleted, { |a| a[ 32 ] := -a[ 32 ] } )
oDbfMod:SaveArrayToDBF( cItemFlds, oBrowse:aDeleted )
endif
save on first record the code (oRec:codRep) and save on 29 record the counter "00001"
- Code: Select all Expand view RUN
- AEval( aDataForm, { |a| a[ 1 ] := oRec:codRep } )
AEval( aDataForm, { |a,i| a[ 29 ] := strzero(i,5) } )
save on archive ( here make the error )
- Code: Select all Expand view RUN
- oDbfMod:FW_SaveArrayToDBF( aDataForm,cItemFlds,,.t. )