Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unused classes
Message
From
06/03/2006 15:49:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/03/2006 14:46:13
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01101765
Message ID:
01101833
Views:
17
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform