flat assembler
Message board for the users of flat assembler.

Index > Heap > runtime orror 91(in visual basic 6)

Author
Thread Post new topic Reply to topic
Perseus



Joined: 18 Dec 2003
Posts: 22
Location: Czech republic
Perseus
Hi,
could you help me, plese:
I have a code,whitch makes autologin. But this code is function only once by run. Twice and more is runtime error 91.

Here is my code:
Private Sub Form_Initialize()
Dim ie As Object

Dim adresa

adresa = "http://px2.xchat.centrum.cz/~guest~/modchat?op=homepage" 'url,where is login form
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate adresa

Do While ie.Busy
DoEvents
Loop

ie.Visible = True

ie.Document.All("u_name").Value = "a_nick" 'without this line of code makes always

Me.Hide
Set ie = Nothing

End Sub
Post 29 Jul 2005, 19:12
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Do this instead:

Code:
Dim u_name

Set u_name = ie.Document.All("u_name")
If (Not (u_Name Is Nothing)) Then
    u_name.Value = "a_nick"
End If
    
Post 29 Jul 2005, 19:31
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Perseus



Joined: 18 Dec 2003
Posts: 22
Location: Czech republic
Perseus
Thanks,I tried change

ie.Document.All("u_name").Value = "a_nick"

for your code and I afraid not fill out in white array the string(nick).
Post 29 Jul 2005, 20:45
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.