I am now trying to create reports like I did in visual fox.
to create in fox select * from table into cursor ...... I now have a temp file.
What I am doing in hmg3.2 is in samples,miscellaneous,temporary.table
aadd(adbf, {"itemcd", "c", 10, 0})
aadd(adbf, {"itemnm", "c", 40, 0})
aadd(adbf, {"rate", "n", 8, 2})
if !hb_dbcreatetemp("curItem", adbf)
msgbox("Cannot create temporary table: Item")
RELEASE WINDOW ALL
return nil
endif
if select("curItem") = 0
use curItem new
endif
select curItem
append blank .............. EG: or append from table for fieldname = 'something'
curItem->itemcd := "CD"
curItem->itemnm := "Compact Disc"
curItem->rate := 10.00
unlock
This all working fine but I wonder if the temp table is in memory as I can not find it
on my computer. Also if I create an index with same name it also is not visible.
My main concern is when i release the window is the table and index erased.
I could create a real table and index and erase later but more programing involved.
Thanks in advance ............ Franco
