Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unused classes
Message
From
06/03/2006 20:44:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/03/2006 15:49:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
01101765
Message ID:
01101904
Views:
19
>>
>>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.

That would be a false negative. A false positive would be a class which is subclassed, but subclasses are never used. Also, if you're using a data-driven class factory, you'd need to check for factory calls, to see if there are dead records in the factory table.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform