Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with a class but not on a form
Message
From
27/10/2001 10:43:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/10/2001 18:59:25
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00574051
Message ID:
00574143
Views:
25
This message has been marked as the solution to the initial question of the thread.
>>>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?

>Well I moved the class to another library where it was on it's own, changed the references in the form. I still get the error. By the way I have the exact same problem with a textbox I put on the form to see if it was an OLE problem. Any other ideas?

The trick would be to not have the browser object as a member of the form class - because in that case you can't destroy it. You'd have to addobject() it from the form's .init, i.e. programmatically. What you add programmatically, you can remove programmatically. If it's a part of the form class, added in the designer, it's impossible to kill. You'd also have to set its position and size etc in the instantiation code, but I figure you already have that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform