Page 1 of 1

Orphan function removal

Posted: Thu Jul 05, 2018 11:10 pm
by juski
I've been working on roughly the same workspace since I first started using qlcplus & I think I've got a good number of functions that've been orphaned - scenes I don't use on buttons or in any chases etc. Is there an approved (or not approved) way to find them & get rid of them?

Re: Orphan function removal

Posted: Fri Jul 06, 2018 7:30 am
by GGGss
If you trust yourself enough you could have a look into your projectfile. It's plain .xml so any text editor will be oke.
BUT ... don't change something - you will break your projectfile. And take one or two backups before you start.

Now you will have to find out which function is not bound to a button. This won't be that easy unless you could build a correlation between VC controls and functions. I'd try to create a little database and use a RIGHT JOIN to find the orphans (with Isnull() value for joined [function])... but thats not the scope of this forum.