Article Preview
Buy Now
COLUMN
Associating a Window to an Object
An Introduction to Weak References
Issue: 3.4 (March/April 2005)
Author: Charles Yeomans
Author Bio: Charles Yeomans is a software developer in Lexington, Kentucky.
Article Description: No description available.
Article Length (in bytes): 4,947
Starting Page Number: 33
Article Number: 3414
Related Link(s): None
Excerpt of article text...
Consider the following example. You have a Mailbox class with a method ShowMessages that displays a window containing the list of messages. As long as this window is open, you would like the result of calling ShowMessages on a Mailbox to display the same window. At first glance, this is simple enough; the object holds a reference to the window and returns it when ShowMessages is called. The code might look something like the following.
Sub ShowMessages()
If me.pMsgWindow Is Nil then
...End of Excerpt. Please purchase the magazine to read the full article.