I've got code similar to the one below in my program, where I insert data into a table from memvar. At no stage do I clear this memvar. I guess I shopuld be if so how?
thanks
m.posid = CHOSENTILL
m.alltills = .F.
m.LastZ = Zhistory.Lastz + 1
m.date = date()
TimeStr = TIME()
MyTime = VAL(SUBSTR(TimeStr, 1, 2) + SUBSTR(TimeStr, 4, 2))
m.Time = MyTime
m.period = 1
m.Aborted = .F.
m.from = firsttran
m.to = lasttran
With Thisform.CNT1
m.Actual2 = val(.Acttend2.value)
m.Actual3 = val(.Acttend3.value)
m.Actual4 = val(.Acttend4.value)
m.Actual5 = val(.Acttend5.value)
Endwith
INSERT INTO ZHistory FROM MEMVAR
thanks
m.posid = CHOSENTILL
m.alltills = .F.
m.LastZ = Zhistory.Lastz + 1
m.date = date()
TimeStr = TIME()
MyTime = VAL(SUBSTR(TimeStr, 1, 2) + SUBSTR(TimeStr, 4, 2))
m.Time = MyTime
m.period = 1
m.Aborted = .F.
m.from = firsttran
m.to = lasttran
With Thisform.CNT1
m.Actual2 = val(.Acttend2.value)
m.Actual3 = val(.Acttend3.value)
m.Actual4 = val(.Acttend4.value)
m.Actual5 = val(.Acttend5.value)
Endwith
INSERT INTO ZHistory FROM MEMVAR