1. Matt - My first run with OOEU
- Posted by Jonas Temple <jtemple at yhti.net> Oct 13, 2006
- 494 views
Well, I downloaded the OOEU package and installed. I then tried to run the ExcelObjects.exw demo and got the following: excelobjects.exw:56 method 'Workbooks' does not exist wbs = App.Workbooks() ^ Fatal run-time error: divide by 0 symtab.e:673 return class_table[CLASS_NAME][class][1] = '_' OOEU has crashed... save il excelobjects.exw.sym excelobjects.exw: 56 Line: wbs = App.Workbooks() Press Enter... I checked ExcelObjects.ew and there is a Workbooks method in the ExcelApplication class. Jonas Temple http://www.yhti.net/~jktemple
2. Re: Matt - My first run with OOEU
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Oct 13, 2006
- 508 views
Jonas Temple wrote: > > Well, I downloaded the OOEU package and installed. I then tried to run the > ExcelObjects.exw demo and got the following: > > excelobjects.exw:56 > method 'Workbooks' does not exist > wbs = App.Workbooks() <snip> > I checked ExcelObjects.ew and there is a Workbooks method in the > ExcelApplication > class. I'd totally forgotten about this until you brought it up. I'm adding it as a demo for ooeu. The problem is that I introduced constructors in 1.7.0 (as you can see from comments in the code, this demo was back in the 1.4.1 days). You will also note that there's a Workbooks class, so this method looks kinda like a constructor. I've fixed the bug for the next release (sometime between now and Monday, hopefully). An easier solution would be to change the method (and all the places that call it--probably just the one, but I haven't really checked) name to something else like GetWorkbooks. Matt Lewis