> >I am experiencing this runtime error 91 Object variable or with block
> >variable not set ONLY in the exe-File. If I run the program out of the
IDE
> >there is never a problem. This makes it tricky to trace.
----- Original Message -----
Newsgroups: comp.lang.basic.visual.misc
Sent: Friday, October 25, 2002 10:05 AM
Subject: Re: runtime error: 91 Object variable or with block variable not
set
> At the top of all your modules do you have :-
> Option Explicit : DefObj A-Z
> (tip from Joe (Nuke Me) Foster - that has shown up many potential
> problems for me)
> Also wherever you have a dynamic array do you do :-
> Dim MyArray() As String
> ....
> ReDim MyArray( 1 To Count )
> If you do not do this then there is a slight possibility that 'scope'
> problems will turn up - and the wrong Array is redimensioned.
> Realistically you need to put some sort of routine tracing stuff in
> your code :-
> Private Sub MySub( Var1 As ... )
> PushLoc "MySub"
> ....
> PopLoc "MySub"
> End Sub
> That will give you a clear idea where the error lies.
> Another method is to simply put in Line Numbers
> - these are still supported in VB
> - this will help you locate (at least roughly) the area in which the
> problem shows itself.
> Also have a look at your Compiler options
> - do you have any 'Advanced Optimizations' set ?
> The fact that it turns up in *two* programs is helpful
> - what code is shared between the two.
> - or common to both Apps
Tx, I keep it in mind.
For now I do not get this error, maybe I just needed to reboot the system.
Both programs do use the microsoft HTML Object library, so I figure it might
be connected with that.
regards
Gunter