Variable Undefined

Discussion in 'ASP General' started by Jan Plastenjak, Jan 16, 2004.

  1. 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.
     
    Jan Plastenjak, Jan 16, 2004
    #1
    1. Advertisements

  2. Jan Plastenjak

    Harag Guest

    On Fri, 16 Jan 2004 10:41:34 +0100, "Jan Plastenjak" <>
    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
     
    Harag, Jan 16, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Davis King

    is (variable >> 32) undefined?

    Davis King, Sep 27, 2003, in forum: C++
    Replies:
    3
    Views:
    429
    Ron Natalie
    Sep 29, 2003
  2. Mantorok Redgormor
    Replies:
    70
    Views:
    2,394
    Dan Pop
    Feb 17, 2004
  3. Dan Rawson
    Replies:
    7
    Views:
    485
    Michele Simionato
    Aug 6, 2003
  4. vertigo

    undefined variable ?

    vertigo, Oct 16, 2004, in forum: Python
    Replies:
    5
    Views:
    731
    Josiah Carlson
    Oct 16, 2004
  5. mfglinux
    Replies:
    11
    Views:
    974
    Roberto Bonvallet
    Sep 12, 2007
  6. David Filmer
    Replies:
    19
    Views:
    518
    Kevin Collins
    May 21, 2004
  7. VK
    Replies:
    45
    Views:
    1,026
    Dr John Stockton
    Sep 12, 2006
  8. -Lost
    Replies:
    13
    Views:
    583
    Richard Cornford
    Jan 31, 2007
Loading...