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: Functions in VB.NET not returning data
User192

Posts: 7
Member Since: 03/13/02
posted March 12, 2004 2:44 PM

Hi!

I'm used to get data from URL using the following code in VB 6:

Private m_oRequestHeader As New DartSock.DartStrings (IN VB.NET)
Private m_oRequestHeader As New DartStrings (IN VB6)
---------------------------
Dim oHttp As New DartWeb.Http
Dim sReturnedData as String

oHttp.Url = "http://www.yahoo.com/"
oHttp.Cache = False
oHttp.Timeout = 30000
oHttp.Get(sReturnedData, m_oRequestHeader)

Now, I'm using the same code in VB.NET and oHttp.Get doesn't return any data.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 12, 2004 3:29 PM

VB.NET does not initialize strings so the data comes in to us as nothing and we do nothing with it. Make sure you initialize all strings:

Dim sReturnedData as String = ""
Reply | PowerTCP Web for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX