SubMain - CodeIt.Right The First Time!

/Community

Support Community for SubMain Products
 Home Products Services Download Purchase Support
in Search
 
Home Forums Blogs Tutorials/CIR Tutorials/GD Downloads
Welcome to SubMain Community Sign in | Join | Help

Local variable name bug

Last post 05-14-2015, 7:18 AM by Misha Zhutov (SubMain). 1 replies.
Sort Posts: Previous Next
  •  05-13-2015, 10:23 PM 4154

    Local variable name bug

    I have the following code

    If parameters.EtsEntryGuid.HasValue AndAlso Not parameters.FormGuid.HasValue Then

                    Dim ErrReport As StiReport = ReportFactory.GetReportObject(CompanyScheduledReports2.ReportTypes.DataErrorReport, lcid)

                        Return ErrReport

    End If

     

     

     

                   

    If Not parameters.FormGuid.HasValue Then

    Dim ErrReport As StiReport = ReportFactory.GetReportObject(CompanyScheduledReports2.ReportTypes.DataErrorReport, lcid)

                    Return ErrReport

    End If

     

    CodeIt.Right notifies me that the ErrReport parameter should be named correctly (two times - one for each variable) and suggests on the analysis page to rename it .

    When trying to apply the fix I get an error  "Can’t rename - name "errReport" already exists" it does exist but in a different scope so CodeIt.Right should not have an error

     

    EDIT: I should  note that I am working in memory optimization mode. It appears that when in performance mode the suggested new names have a numeric suffix and when in memory mode they dont

    Filed under: ,
  •  05-14-2015, 7:18 AM 4155 in reply to 4154

    Re: Local variable name bug

    Hello,

    What CodeIt.Right version are you using? Please write us to support@submain.com and we will troubleshoot that.

     


    Thank you,
    Misha Zhutov
    http://submain.com - .NET Developer Tools | Microsoft VB MVP
View as RSS news feed in XML
 
     
 
Home |  Products |  Services |  Download |  Purchase |  Support |  Community |  About Us |