Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Variable Undefined

Reply
Thread Tools

Variable Undefined

 
 
Jan Plastenjak
Guest
Posts: n/a
 
      01-16-2004

I got this error:

Error Type:
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'myapp'

When I was doing this:

Set myapp = Server.CreateObject("MyAppCOM.MyApp.1")

Why?

Thank you.


 
Reply With Quote
 
 
 
 
Harag
Guest
Posts: n/a
 
      01-16-2004
On Fri, 16 Jan 2004 10:41:34 +0100, "Jan Plastenjak" <(E-Mail Removed)>
wrote:

>
> I got this error:
>
>Error Type:
>Microsoft VBScript runtime (0x800A01F4)
>Variable is undefined: 'myapp'
>
> When I was doing this:
>
>Set myapp = Server.CreateObject("MyAppCOM.MyApp.1")
>


Do you have "Option Explicit" at the top of the page? if so then you
need to DIM all your variables

DIM myapp

HTH
Al

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
typeof x == 'undefined' or x == undefined? -Lost Javascript 13 01-31-2007 12:04 AM
undefined vs. undefined (was: new Array() vs []) VK Javascript 45 09-12-2006 05:26 PM
How do I scope a variable if the variable name contains a variable? David Filmer Perl Misc 19 05-21-2004 03:55 PM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM



Advertisments