Just a curiosity, currently I'm learning to use the internet transfer control (msinet.ocx), and the example given here: http://wiki.robotz.com/index.php/Int...Control_in_VB6
They use an array of bytes and converts the text to a string
Private Sub cmdGo_Click()
Dim bAr() As Byte, cnt As Integer
inet.Protocol = icHTTP
inet.URL = txtAddress.Text
bAr() = inet.OpenURL(, icByteArray)
txtOut.Text = StrConv(bAr, vbUnicode)
End Sub
But why not just store it as a String to begin with?
Private Sub cmdGo_Click()
Dim strText As String, cnt As Integer
inet.Protocol = icHTTP
inet.URL = txtAddress.Text
strText = inet.OpenURL(inet.URL, icString)
End Sub
Bookmarks