application variables

Discussion in 'ASP General' started by Hursh, Feb 12, 2004.

  1. Hursh

    Hursh Guest

    Hi,

    I have read in books regarding application variables is that some
    object should not be stored in these variables, like apartment
    threaded objects.

    however is it ok to save objects of user defined classes.
    i.e.

    ============================
    class foo
    ....
    end class

    dim demo
    set demo=new foo

    Application.Lock
    Application("temp")=demo
    Application.Unlock
    ============================

    will this work??

    tia
    Hursh
     
    Hursh, Feb 12, 2004
    #1
    1. Advertising

  2. Hursh

    PL Guest


    > will this work??


    No, because the classes you create in VBScript lives in the scope of the VBScript engine,
    not in the ASP context.

    Remember that ASP is just a framework, the language you use is VBScript, if you define
    a Class in VBScript it lives inside the VBScript interpreter.

    PL.
     
    PL, Feb 12, 2004
    #2
    1. Advertising

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. avnrao
    Replies:
    0
    Views:
    3,375
    avnrao
    May 7, 2004
  2. =?Utf-8?B?Q2hhaW5zYXdEdWRl?=

    retain application variables on application restart

    =?Utf-8?B?Q2hhaW5zYXdEdWRl?=, Feb 3, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    438
    Brock Allen
    Feb 3, 2006
  3. Replies:
    9
    Views:
    971
  4. mark4asp
    Replies:
    1
    Views:
    221
  5. Tony Archer

    Global Variables? Multi-Application Variables?

    Tony Archer, Nov 24, 2003, in forum: ASP General
    Replies:
    5
    Views:
    228
    Tony Archer
    Nov 25, 2003
Loading...

Share This Page