>Nothing like that (lol)
>
>The error is "Object name is invalid". In the form version, there is no problem and the TYPE and VARTYPE of the removed object is undefined. In the class based version, it remains object type and vartype. FYI I created the form and tested it then created the class from the form. So there was no change. Incidentally, I first tried to create the whole shebang as a class. This had the same problem hence creating a form to see if I could isolate the problem.
>
>What I am doing is creating a simple web browser for testing my web apps. I want to completely refresh the browser so everything is initialized (cookies, sessions, session variables etc...) and I am tired of closing the browser and clicking the shortcut each time. Lazy and it's a fun exercise (or was until ...)
You'd have to save your browser object as a separate class, more like a wrapper around the browser, and addobject() or newobject() it when you need it, and kill it when you feel like it. Besides, once you get it to work as you like, it could be usable elsewhere, right?