in reply to new to oop (problem with my object)
Plus everything Fastolfe said.
Besides, you have a real mess in your methods: some of them call print to print out your table tags, and others simply return values. That's not going to work--decide on one or the other and stick to it. If I were you I'd have all my methods return data rather than printing it out, because it's more flexible that way.
So, for example, your row_open method prints out "<tr>", but then you set a value using the "name" method, then attempt to do something with it, and the name method just returns that value. And you don't do anything with it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: new to oop (problem with my object)
by Fastolfe (Vicar) on Nov 17, 2000 at 02:16 UTC | |
by dryland (Initiate) on Nov 17, 2000 at 02:48 UTC | |
by Fastolfe (Vicar) on Nov 17, 2000 at 02:52 UTC | |
by dryland (Initiate) on Nov 17, 2000 at 03:31 UTC |