Hello,

I have tried Unused local variables function on our biggest project and it doesn't compile after that.

Suppose something like this:

Code:
Procedure MyProcedure
    String sVarN1

    Gosub MySubProcedure

    MySubProcedure:
        Move ((Trim(Table.FieldN1)) + " / " + (Trim(Table.FieldN2)) + " / " + ;
            String (Table.FieldN3) + " / " + String (Table.FieldN4)) to sVarN1
End_Procedure
It gets refactored to (pay attention to Table.FieldN3 & Table.FieldN4 & parenthesis closing):

Code:
Procedure MyProcedure
    String sVarN1

    Gosub MySubProcedure

    MySubProcedure:
        Move ((Trim(Table.FieldN1)) + " / " + (Trim(Table.FieldN2)) + " / " + ;
            String + " / " + String to sVarN1
End_Procedure