Modify ↓
Opened 16 years ago
Closed 16 years ago
#1592 closed Bug (No Bug)
Int() does not set error status on fail
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | Int | Cc: |
Description
The documentation for Int( expression ) says
<snip>
Return Value
Success: Returns a integer.
Failure: Returns 0 sets @error to 1 if not an integer, float or string.
</snip>
However, the following code does not set @error
Local $liTest = Int("hello")
If @error
;not reached
I am running autoit 3.3.6.1 on Windows XP 64 SP2
Attachments (0)
Note:
See TracTickets
for help on using tickets.

reread the doc there is no @error setting for a string