Hello,

I have tried Unused local variables function on our biggest project and it doesn't compile after that. Reason is that we have multi-line function calls on it.

Supose something like this:
Code:
Function MyFunction Date dParamN1 String sParamN2 Integer iParamN3;
    Integer iParamN4 Integer iParamN5 Integer iParamN6;
    Integer iParamN7 Integer iParamN8 Integer iParamN9 Integer iParamN10;
    Integer iParamN11 Integer iParamN12 Integer iParamN13 Integer iParamN14 Returns Date
    
    ...
    
    Get MyOtherFunction iParamN5 iParamN6;
        iParamN7 iParamN8 to dDate
    
    ...
    
End_Function
It gets refactored to (pay attention to first variable of the third function declaration line... & third line semicolon... & Returns Keyword):
Code:
Function MyFunction Date dParamN1 String sParamN2 Integer iParamN3;
    Integer iParamN4 Integer iParamN5 Integer iParamN6;
    Integer Integer iParamN8 Integer iParamN9 Integer
    Integer iParamN11 Integer iParamN12 Integer iParamN13 Integer iParamN14 Date
    
    ...
    
    Get MyOtherFunction iParamN5 iParamN6;
        iParamN7 iParamN8 to dDate
    
    ...
    
End_Function
If I change function call to one line then it doesn't delete iParamN7 variable declaration.

P.D
Returns Keyword is commented here: https://support.dataaccess.com/Forum...eturn-keyword)
Line semicolon is commented here: https://support.dataaccess.com/Forum...ns-(semicolon)

Regards.