View Issue Details

IDProjectCategoryView StatusLast Update
0001865Inno Script StudioGeneralpublic2015-10-07 12:46
ReporterplopesAssigned Totimchilvers 
PriorityhighSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
PlatformOSWindows 7OS Version
Product Version2.2.1 
Target VersionFixed in Version 
Summary0001865: Code: keyword "with" does not work with records
DescriptionIn the code section, when we use the "with" keyword on a record, Inno Script Studio displays the error message "Unknown identifier ''",
in my spefic code displayed "Internal error (20)".
The same code works fine on Inno Setup.
Steps To Reproduce[Code]

type
    TMyComponent = record
        Name: String;
        Description: String;
        Installed: Boolean;
        Level: Integer;
    end;
    
procedure InitializeWizard();
var
    cmp: TMyComponent;
begin
    with cmp do begin
        Name := 'MyName';
        Level := 1;
    end;
end;
Additional InformationAnother example:
[Code]

type
    TMyComponent = record
        Name: String;
        Description: String;
        Installed: Boolean;
        Level: Integer;
    end;

var
    MyComponents: array of TMyComponent;
    
procedure InitializeWizard();
var
    cmp: TMyComponent;
begin
    with cmp do begin
        Name := 'MyName';
        Level := 1;
    end;
end;
TagsNo tags attached.

Activities

timchilvers

2015-10-07 12:44

administrator  

iss-success-5.5.6u.png (84,213 bytes)
iss-success-5.5.6u.png (84,213 bytes)

timchilvers

2015-10-07 12:44

administrator  

iss-error-5.5.6a.png (81,597 bytes)
iss-error-5.5.6a.png (81,597 bytes)

timchilvers

2015-10-07 12:45

administrator  

is-error-5.5.6a.png (65,204 bytes)
is-error-5.5.6a.png (65,204 bytes)

timchilvers

2015-10-07 12:46

administrator   ~0001150

Running tests on both Inno Setup 5.5.6 Ansi and Unicode, shows the steps to reproduce code works fine in Inno Script Studio when using Inno Setup Unicode (see iss-success-5.5.6u.png).

Running the same code through Compil32.exe using the ansi version shows the same Inno Setup compiler error (see iss-error-5.5.6u.png & is-error-5.5.6a.png).

This appears to be an error with the Ansi version of Inno Setup and should be reported either on the Inno Setup GitHub page (https://github.com/jrsoftware/issrc) or directly on the Inno Setup news groups (http://www.jrsoftware.org/newsgroups.php)

Issue History

Date Modified Username Field Change
2015-10-07 10:49 plopes New Issue
2015-10-07 12:34 timchilvers Assigned To => timchilvers
2015-10-07 12:44 timchilvers File Added: iss-success-5.5.6u.png
2015-10-07 12:44 timchilvers File Added: iss-error-5.5.6a.png
2015-10-07 12:45 timchilvers File Added: is-error-5.5.6a.png
2015-10-07 12:46 timchilvers Note Added: 0001150
2015-10-07 12:46 timchilvers Status new => feedback