Login  
Search All Forums
Dart Home | PowerTCP Web for ActiveX | Custom Development Reply | PowerTCP Web for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web for ActiveX
Topic: non-blocking event for array of WebTool object?
glasses

From: Daejeon, South Korea
Posts: 1
Member Since: 01/29/03
posted January 29, 2003 3:15 AM

Hi.

I'm developing a simple VB application with Web Tool and testing non-blocking http request as below:

For i = 1 To 5
    Set HttpObj(i) = CreateObject("Dart.Http.1")
    strResult(i) = ""
    HttpObj(i).Timeout = 0
    HttpObj(i).Url = "http://www.yahoo.com/"
    HttpObj(i).Get strResult(i)
Next


in this situation, what name can I use for the events like _state, _progress, and so on.

I've tried HttpObj_State(Index as Integer) - stupid code - but not working.

TIA.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 29, 2003 9:48 AM

Hi,
To create an array of controls, you should place one on the form, and set its index to 0. Then to create the array, use the Load code below.
The events for the control will now have an Index parameter which can be used to distinguish between the members of the array.
-ken

For i = 1 To 5
  Load Http1(i)
  Http1(i).Timeout = 0
  ...
Next i
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX