Carminati Paolo wrote: > The RECORD# function must be modified as below: > if (err == noErr) > { > err = > FSSetForkPosition( gFBOpenFiles_A[fileID].forkRefNum, fsFromStart, > newPos ); //Paolo 4-02-09 > } > example: > Record#1, 3 > Write#1, dummy > > If the file created (1) is empty and you try to write at third > record, the data are added to the beginning. > The reason is that FBToCWriteFile is using a position mode > “FSAtMArk, the file was correctly increased in size but the current > mark is set to the begnning, therefore a further FSSetForkPosition > call must be done. > > Tested. Now it’s working correctly. Thank you. The fixed FBRecord() will be in the next release. Robert P.