-
> > mydb.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data\x20Source="++strdb++";Extended\x20Properties=Excel\x208.0")


That fixed it.
Some debugging with myviewstruct.numobjects scattered about showed that objects 
were being freed for the for each loop at the start of the script which does 
the debugshow to display the data.  It's not clear why from a quick read of the 
code -- it appears the assignments to the foreach variable should be doing the 
proper reference counting.

In any event, this loop works and seems to avoid the crash in limited testing:

for (i=0; i<vdata.length; i++)
win.debugshow("example: elem."++firstvar++" from record #"++i, 
eval("vdata[i]."++firstvar))


Reply via email to