I must order ( display order ) an archive , the problem is I cannot use dbzap or delete record because I use that archive in share mode then if I delete each record it not run because I not recreate the index because I open the dbf in share mode
I use a field "ORDINE" where I save the n position
to move a record from a position to another I first create an array from archive
aArray:= SE->( FW_DbfToArray("id,name,breve,price,image,struttura,unit,a4,pos,multiple,islock,ordine" ) )
then in a dialog I change the position of item of this array with functions SwapUpArray and SwapDwArray I found in this forum
then I must save the new position on array with
For n= 1 to Len(aArray)
aArray[n][12]:=n
next
Now I must save on archivi se.dbf
but I cannot use dbzap because I use se.dbf in share mode , so how I can resolve it to save the aarray into se.dbf ?
I use a field "ORDINE" where I save the n position
to move a record from a position to another I first create an array from archive
aArray:= SE->( FW_DbfToArray("id,name,breve,price,image,struttura,unit,a4,pos,multiple,islock,ordine" ) )
then in a dialog I change the position of item of this array with functions SwapUpArray and SwapDwArray I found in this forum
then I must save the new position on array with
For n= 1 to Len(aArray)
aArray[n][12]:=n
next
Now I must save on archivi se.dbf
SELECT SE
dbzap
 SE->( FW_ArrayToDBF( aArray, "id,name,breve,price,image,struttura,unit,a4,pos,multiple,islock,ordine" ) )
            SE->( DBGOTOP() )but I cannot use dbzap because I use se.dbf in share mode , so how I can resolve it to save the aarray into se.dbf ?
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