#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 , on Aug 18, 2009 at 2:23:36 AM
| 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 , on Oct 13, 2009 at 7:17:15 AM
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 , on Oct 13, 2009 at 5:01:01 PM
The return value contains a text string describing the error. This is WRONG. The return value should be an empty string.
comment:4 by , on Oct 13, 2009 at 5:17:21 PM
| Milestone: | → 3.3.1.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Added in version: 3.3.1.2
comment:5 by , on Oct 13, 2009 at 5:27:52 PM
| 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 , on Oct 13, 2009 at 6:05:34 PM
| Milestone: | → 3.3.1.2 |
|---|---|
| Resolution: | → Fixed |
| Status: | reopened → closed |
comment:7 by , on Oct 13, 2009 at 6:29:32 PM
| Milestone: | 3.3.1.2 |
|---|---|
| Resolution: | Fixed |
| Status: | closed → reopened |
Err, please actually read why I reopened this ticket.
comment:8 by , on Oct 14, 2009 at 2:44:06 AM
| 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.