>Hi Hilmar,
>
>>Does anyone have some sort of utility to check for unused classes?
>>I guess the definition would be something like: Search for classes that are defined in some classlib in the project, but that are neither subclassed nor instantiated anywhere in the project.
>>Checking if a single class would be relatively simple with a file search utility such as Agent Ransack, but I was hoping for something more systematic.
>>TIA,
>>Hilmar.
>>Curiosity: And in the cases in that we create object thus:
>
>lsClassFirstName = "myClass"
>lsCompleteName = lsClassFirstName + [SQL]
>loObject = CreateObject(lsCompleteName)
>
>I think that if one class is used this way it'll be considered like Unused. Does it correct? 8-D
Damn it, you are right - I hadn't thought about that. And I have indeed used expressions for some classes, like two versions of a report, similar to "cMyReport1" and "cMyReport2".
That would require extra care when deleting an "unused" class.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)