Hi,
see my answer to Jeff above
thank's
serge
Rob Collyer wrote:
[color=blue]
> One way, would be to lose 'option explicit' and all your variable
> declarations (dim statements)
>
> Although I have to say, including a file more than once is generally a sign
> of bad coding practice....
>
> I'm sure there will be a much much better way of achieving what you want
> without resorting to including the same file multiple times.
> --
> Rob Collyer -
www.webforumz.com
> Web design and development forums for Free help, advice,
> tips, and website critique by professional designers and developers.
>
> "Serge Myrand" <info@softdelirium.qc.ca> wrote in message
> news:40FA78F7.B87E06B3@softdelirium.qc.ca...[color=green]
> > Hi everybody,
> >
> > In an ASP page, I need to load twice an include file that contains
> > variables. So I get an error message "variable redefine" I tried to test
> >
> > with VarType before to define the variable (dim) with no success. Is it
> > faisable with VBScript to define a variable (dim) under condition.
> >
> > ' this code gives an error
> > if VarType("MyVar") = vbNull then
> > dim MyVar
> > end if
> >
> >
> > many thank's
> > serge
> >
> >
> >[/color][/color]