View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001865 | Inno Script Studio | General | public | 2015-10-07 10:49 | 2015-10-07 12:46 |
| Reporter | plopes | Assigned To | timchilvers | ||
| Priority | high | Severity | major | Reproducibility | always |
| Status | feedback | Resolution | open | ||
| Platform | OS | Windows 7 | OS Version | ||
| Product Version | 2.2.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0001865: Code: keyword "with" does not work with records | ||||
| Description | In 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 Information | Another 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; | ||||
| Tags | No tags attached. | ||||
|
|
|
|
|
|
|
|
|
|
|
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) |
| 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 |