Article Preview
Buy Now
COLUMN
Typecasting
Working with datatypes
Issue: 7.4 (May/June 2009)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 16,144
Starting Page Number: 46
Article Number: 7414
Resource File(s):
7414.zip Updated: 2009-05-01 11:25:10
Related Link(s): None
Excerpt of article text...
In last issue's
Beginner's Corner , I wrote about working with windows. One feature involved building a menu of open windows where I saved the window's reference into a menuitem'stag
property. I did this with code that looked like this:
docWindow(wmenu.tag).show
A reader wrote with a question about this and I realized that I probably glossed over an interesting topic. The above code confused the reader because the syntax makes it appear as though I'm passing
wmenu.tag
as a parameter todocWindow
. That's not at all what's happening, but since the syntax is the same as passing parameters to functions, it certainly is confusing. I know when I first ran into this I found it bewildering.
...End of Excerpt. Please purchase the magazine to read the full article.