Posted by: James McCall
Here's a strange problem in CTD2000 that may well have propogated through
the versions ...
1. I created two form window classes and assigned an icon file to one of
them, leaving the other class's icon file as (class default).
2. I then created an instance of each, compiled & saved without problem.
3. I went back to the classes and set the icon file back to (class default).
4. Now the app will not compile - I get a "Cannot open icon file." error on
the form whose class once had an icon file assigned.
It seems that (class default) means "find an icon file you may think you
might once have had in a base class"!
See attached file for sample - inspect the properties of the two form window
classes & you will see that they are the same, ditto for the two forms. The
only difference is that I once assigned the icon "qm.ico" to the class
"cfwBase_OnceHadAnIcon" - information which is not visible to the developer.
Just another "gottcha" from TD. Anyone with later versions curious as to
whether it is still in TD? Just try steps 1-4 on a new app.