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
- Code: Select all Expand view RUN
- 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 ?