Code: Select all
#include "fivewin.ch"
function main()
local oDb
field dref
if !file("hua.dbf")
dbCreate("hua.dbf", {{"dref", "c", 12, 0}})
endif
oDb := TData():open(, "hua.dbf",,.t.)
select (oDb:cAlias)
index on dref to hua temporary
oDb:append()
oDb:dref := time()
oDb:save()
xbrowse(oDb)
return nil
class TData from TDatabase
method open(cAlias, cDbf, cDriver, lShared) inline ::super:open(cAlias, cDbf, cDriver, lShared)
method append() inline (::cAlias)->(myAppend())
endclass
function MyAppend()
append blank
return nil