Opened 17 years ago
Closed 16 years ago
#1137 closed Feature Request (Completed)
Change RegEnumKey/RegEnumVal error return to be more sensible.
| Reported by: | Owned by: | Valik | |
|---|---|---|---|
| Milestone: | 3.3.1.2 | Component: | AutoIt |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
Hello,
I hope it will not be 'is a feature, not a bug' ;)
Both functions, RegEnumKey / RegEnumVal, delivers if there is no valid key or no more key available german sentence like 'Das System kann die angegebene Datei nicht finden' Or 'Es sind keine Daten mehr verfügbar'. So I have to use always additional string function to check the return value of it. The string info is more exact than the available error codes (differents between 'not exist' and 'not anymore exists'. How about a Return Value like and add this different as a new error cde.
Thanks for reading,
Sebastian
Attachments (0)
Change History (8)
comment:1 by , 17 years ago
| Summary: | RegEnumKey / RegEnumVal Return Value → Change RegEnumKey/RegEnumVal error return to be more sensible. |
|---|---|
| Type: | Bug → Feature Request |
| Version: | 3.3.0.0 |
comment:2 by , 16 years ago
Today you already get 2 different @error 1 and -1.
In case more information is needed I add @extended setting equal to Windows return code which usely will be 2 and 103
comment:3 by , 16 years ago
The return value contains a text string describing the error. This is WRONG. The return value should be an empty string.
comment:4 by , 16 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Added in version: 3.3.1.2
comment:5 by , 16 years ago
| Milestone: | 3.3.1.2 |
|---|---|
| Resolution: | Completed |
| Status: | closed → reopened |
This is not completed in a satisfactory way. In fact the change completely ignores the problem I have with the function which is that it returns an error string on failure. The changes to @extended are superfluous and unnecessary.
In short revision 5141 needs completely reverted.
comment:6 by , 16 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Resolution: | → Fixed |
| Status: | reopened → closed |
comment:7 by , 16 years ago
| Milestone: | 3.3.1.2 |
|---|---|
| Resolution: | Fixed |
| Status: | closed → reopened |
Err, please actually read why I reopened this ticket.
comment:8 by , 16 years ago
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Completed |
| Status: | reopened → closed |
Changed in version: 3.3.1.2

I don't think this is a bug, but I do think the behavior should be changed. Adjusting ticket to reflect a feature request.