If I insert two records in a xbrowse, how do I insert a new record between the two records I inserted before?
001000 product1000
002000 product2000
I wish insert a record 001100 poduct1100 between they ..it is possible with xbrowse ?
// Not used , but working !
PROC InsertDbf()
****************
LOCAL nInsert := 10
local cTmpDbf1 , cTmpDbf2 , cTmpDbf3
local cPath,cFileName,cExtension
USE CUSTOMER EXCLUSIVE
Hb_fNameSplit(DbInfo(DBI_FULLPATH),@cPath,@cFileName,@cExtension)
IF EMPTY(cPath)
cPath := CurDrive()+":\"+CurDir()
END
IF Right(cPath,1) <> "\"
cPath += "\"
END
cTmpDbf1 := cPath + cFileName + "_"
cTmpDbf2 := GetEnv("TEMP") + "__" + cFilename
GO TOP
COPY TO (cTmpDbf1) NEXT nInsert - 1
COPY TO (cTmpDbf2) REST
USE (cTmpDbf1)
APPEND BLANK
APPEND FROM (cTmpDbf2)
DELETE FILE (cTmpDbf2)
RETURN
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 107 guests