Hi all,
How can I find the list of unused(not referenced by) objects in a PB2019 project?
Thanks
Hi all,
How can I find the list of unused(not referenced by) objects in a PB2019 project?
Thanks
Okay, here it is in attached images (how to get the list of unreferenced with PBL peeper).
Use the pbl-peeper tool (there are 3 shorcuts installed, use the one that doesn't say "find" or "browse").
See the attached images in numeric order and explanatory filenames.
My advice is to export every unreferenced object before you delete it, so you'll have a backup.
Once you have finished deleting unreferenced objects, run the tool again, since you might have deleted an object A which was causing object B to be referenced (by A) and now that you've deleted A, B is a newly unreferenced object.
So "rinse and repeat" until you have no longer any unreferenced objects.
What you have to be careful with is objects you might use as strings dynamically in a function OpenUserobject( string var) or dataobjects that you assign with names in variables obtained from a database or concatenated names.
So at least before you delete userobjects, datawindows or datastores do a full search on its name in the whole target.
Also, you might have unreferenced objects which form part of classes like the PFC's or common libraries. You don't want to delete those, since one day you might want to use them.
Thank you very much Miguel for your detailed answer! This did the job, I was missing the point 04. Hope Apeon will ever enrich PB IDE with small specialties like this.
Thank you Miguel,
I have already tried pbl-peeper but I cannot find how to filter from the list of results only objects that have no reference. And the report returned ~ 10,000 lines.
Thank you Chris,
I guess it's a good tool but at the moment I only need it once and it's not free :(
If I remember well, techno kitten's pbl-peeper also has the possibility to report 'unreferenced /unused' objects:
look for "Crossreference" on this page: http://www.techno-kitten.com/PBL_Peeper/Online_Manual/Reports_Page/reports_page.html
Home page:
Hi Mapo;
You can try the PBSearch tool ... http://www.topwizprogramming.com/pbsearch.html
HTH
Regards ... Chris