Application Object & File Passed

Results 1 to 3 of 3

Thread: Application Object & File Passed

  1. #1
    Join Date
    Dec 1969
    Posts
    25

    Default Application Object & File Passed

    I have read all the articles on application objects and still don&#039t understand. <BR>In my project I created the session.object to access DB and also opened my file that is needed to read records.(UniVerse). How do I use them on the next page? <BR>Application("File") = request(Variable declared on previous page)<BR>will not work. It doesn&#039t allow me to use the property&#039s associated with that file. Nor is my UV Session current.<BR><BR>Does anyone have an idea for me?

  2. #2
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Application Object & File Passed

    If you&#039re trying to change the value of an application variable, you have to lock it first:<BR>Application.Lock<BR>Application("File") = request(Variable declared on previous page)<BR>Application.UnLock

  3. #3
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Application Object & File Passed

    Another thing is, you can not use the variable from the previous page(it&#039s out of scope), unless it&#039s session variable or you passed it in to this page.

Posting Permissions

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