Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unused classes
Message
De
06/03/2006 20:44:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
06/03/2006 15:49:09
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
01101765
Message ID:
01101904
Vues:
18
>>
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform