Results 1 to 2 of 2

Thread: Accessing ASP Application Variables from VB cmponents

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    1
    Does anyone know how to access an ASP application variable, specifically an array variable, from a Visual Basic component. I have created an array application variable in the global.asa Application_Onstart handler (Application("myArray") = MyLocalArray), where MyLocalArray was created with "Dim MyLocalArray() and then redim'd with "Redim MyLocalArray(10)". From ASP I then pass in the Application variable to my VB component as a Variant called objApp. In the VB component I then Dim a local array variable called local_array, and try to set it equal to the App array (local_array = objApp("myArray")). The system just hangs - On Error resume Next doesn't even work. I would appreciate any info! Thanks!
    njm

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Posts
    266
    Check out this article on accesing ASP object model in VB components
    http://www.asptoday.com/articles/19991105.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width