Project

General

Profile

Bug #169

Unused variables: Struct declared within a method has its guts removed

Added by Wil van Antwerpen almost 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Start date:
01/23/2020
Due date:
% Done:

0%


Description

https://support.dataaccess.com/Forums/showthread.php?65431-DFRefactor-and-Structs

DFRefactor removed the guts of a struct

        Struct tSaleType
            String SaleType
            Integer Trx
            Number Amount
            Integer NegTrx
            Number NegAmount
            String CrSaleType
            String CashDrwSum
            String Group
            String Blocked
            String TrxFound
        End_Struct


        tSaleType[] aSaleType


        String sFileName sCurrency sSalesType sCcy sCrSaleType sGroup sPathWrkKirk1
        Date dDate

became


        Struct tSaleType
        End_Struct


        tSaleType[] aSaleType


        String sFileName sSalesType sCcy sCrSaleType sGroup sPathWrkKirk1
        Date dDate

the struct definition was actually within a procedure

The answer is:
Don't declare structs within a method, but logging it as an issue.

Also available in: Atom PDF