;-)
I think I actually used this for something some time ago (can't remember for
what)
> Ahh drat, there I had a nice little example all worked out, and you come
> along with something much more simple ;O)
> Where do you keep getting these things from?
> Anyway, I updated the example to reflect your input:
>
> http://www.richardinfo.f2s.com/dynapi/Richard_Examples/Is_a_variable_defined
> .html
>
> Richard.
>
> ----- Original Message -----
> From: "Michael Bürge" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 18 May, 2001 12:33
> Subject: Re: [Dynapi-Dev] Simple question...
>
> > >> You could check if a variable has been declared (one that is declared
> only
> > >> in that file)
> > >
> > > As far as I know, such a trick is impossible in Javascript. If you try
> to
> > > check a variable that hasn't been declared (using "if (myVar)"), you get
> an
> > > error. I haven't found a way to be able to do that. If someone has the
> > > clue, I would REALLY be interested (and we all could, 'cause it would
> mean
> > > auto-importing of different packages, in the sense, if a package foo
> needs
> > > a package bar, then when including foo, foo says 'I need bar, please
> > > auto-include it !'). I have tried to do this for the DynAPI, but because
> of
> > > the problem stated above, never managed to do that....
> >
> > what about
> > if (self["myVar"]) ....
> >
> > just a thought, haven't tried.
> >
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev