Shawn: Thanks for the help.
Andy ----- Original Message ----- From: "Shawn K. Hall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 22, 2004 11:27 AM Subject: RE: [ASP] Displaying All Created Objects on a Page > Hi Andy, > > > Is there any way to display all the objects that have been > > created on a page? Like if I have Set X = Server.CreateObject > > > > Is there a way to list all of those variables that have > > been declared in this fashion, so I can determine if they > > are being destroyed properly? > > Not without either hard-coding it or using a dictionary object or > similar device (which would hold a reference to the object open thus > sometimes preventing it from being destroyed). > > If you add only the variable name and type (maybe) to a dictionary, > however, you could enumerate those variables and do an "ExecuteGlobal" > to effectively dynamically create the destruction routines for all > variables for you. Using a dictionary object you could quite readily > include both the variable and the type of variable then use a select > statement to perform those tasks required of certain objects > (rs.close: set rs = nothing; erase myarray). It might serve useful in > both diagnostics and after-error cleanup. > > Regards, > > Shawn K. Hall > http://ReliableAnswers.com/ > > '// ======================================================== > "He had occasional flashes of silence that made his > conversation perfectly delightful." --Sydney Smith > > > > > > --------------------------------------------------------------------- > Home : http://groups.yahoo.com/group/active-server-pages > --------------------------------------------------------------------- > Post : [EMAIL PROTECTED] > Subscribe : [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > --------------------------------------------------------------------- > Yahoo! Groups Links > > > > > --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
