Kill all objects in my page

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Kill all objects in my page

    Can I kill (set obj = nothing) ALL objects in my asp page?

    For example I have 5-6 object and I want to kill all together...without
    knowing
    their name.

    something like this...

    for each myObj in obj.count - 1
    set myObj = nothing
    next

    any help appreciated.

    regards


    --
    ==
    fabriZio




    fabriZio Guest

  2. Similar Questions and Discussions

    1. Can not see Scripting objects in web page generated from Excel she
      Hi I've created a web page by exporting a worksheet from Excel that has embedded Windows Forms controls on it. I'm replacing these with Scripting...
    2. library objects move off page
      I have been experiencing a strange bug on Freehand MXa (v11.02 on Mac os 10.3.4) ... I am constructing a drawing using various library elements I...
    3. Changing stacking order of objects on the page
      I am using Acrobat 6.01. After selecting an object with the Touch Up Object tool, and editing it in either Photoshop or Illustrator, the object...
    4. [PHP] Can Objects be passed to another page?
      On 03 September 2003 12:55, Harry Wiens contributed these pearls of wisdom: .... but make sure the class definition is included *before* the...
    5. Can Objects be passed to another page?
      Hi, is it possible to pass an Object to another php page? I want to pass a whole bunch of varibales to another page. For example the session ID,...
  3. #2

    Default Re: Kill all objects in my page

    fabriZio wrote:
    > Can I kill (set obj = nothing) ALL objects in my asp page?
    >
    > For example I have 5-6 object and I want to kill all
    > together...without knowing
    > their name.
    >
    > something like this...
    >
    > for each myObj in obj.count - 1
    > set myObj = nothing
    > next
    >
    Sorry, there's no builtin objects collection. Now if you created an array of
    objects, you could do something like this.

    Bob Barrows


    Bob Barrows Guest

  4. #3

    Default Kill all objects in my page

    Hi,
    Try the below code in global.asa under Session End event.
    Dim i as integer
    For i=0 to objcount-1
    set obj(i)=nothing
    next

    Upendra
    >-----Original Message-----
    >Can I kill (set obj = nothing) ALL objects in my asp page?
    >
    >For example I have 5-6 object and I want to kill all
    together...without
    >knowing
    >their name.
    >
    >something like this...
    >
    >for each myObj in obj.count - 1
    > set myObj = nothing
    >next
    >
    >any help appreciated.
    >
    >regards
    >
    >
    >--
    >==
    >fabriZio
    >
    >
    >
    >
    >.
    >
    Upendra Guest

  5. #4

    Default Re: Kill all objects in my page

    what about the

    session.staticObjects collection?

    HuH?


    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:uC0DMYGTDHA.1576@TK2MSFTNGP12.phx.gbl...
    > > set obj(i)=nothing
    >
    > What is obj(i)? This would only work if you had actually created an array
    > to store each object, and kept track of how many elements in the array
    > actually contain open and valid objects.
    >
    > Otherwise, go through your code and close and destroy all the objects you
    > create.
    >
    >

    Tammy B. Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139