Print Page | Close Window

Record Question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=8127
Printed Date: 16 June 2024 at 1:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Record Question
Posted By: nvierros
Subject: Record Question
Date Posted: 22 September 2007 at 10:53am
Hi,
 
I have noticed in all your samples that when you instantiate a record e.g:
 
Dim Record as ReportRecord
 
Set Record = Nothing  is never called. Is there a reason for this, isn't this bad practice to never destroy the object?
 
A response would be much appreciated.
 
Cheers
 
Nick
 
 



Replies:
Posted By: sserge
Date Posted: 23 September 2007 at 4:33pm
Hi Nick,

In those sample there is no need to explicitly destroy created objects.

References to them are whether passed to Record's collections and properties (and it handles them by itself) or automatically destroyed when exiting corresponding methods or procedures.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net