New topic: 

Can't create an event for HTTPSocket

<http://forums.realsoftware.com/viewtopic.php?t=30547>

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       cyman           Post subject: Can't create an event for 
HTTPSocketPosted: Sun Oct 18, 2009 11:04 pm                        
Joined: Mon Apr 27, 2009 9:55 am
Posts: 5              Hi there,

Ok, so I have an HTTPSocket class I made in the Window1 code:
Dim HTTP As New HTTPSocket

Now, how the heck to I add an event for:
Function AuthenticationRequired( Headers as InternetHeaders, ByRef Name as 
String, ByRef Password as String ) as Boolean 
???   
                            Top                npalardy           Post subject: 
Re: Can't create an event for HTTPSocketPosted: Sun Oct 18, 2009 11:29 pm       
                 
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5341
Location: Canada, Alberta, Near Red Deer              Create a subclass, 
implement the events in your subclass then instantiate one of those

1) create the subclass - call it MyHttpSocket
2) implement the events in that subclass
3) in your code do
  Dim HTTP As New MyHTTPSocket     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to