Modify

Opened 16 years ago

Closed 16 years ago

#1592 closed Bug (No Bug)

Int() does not set error status on fail

Reported by: mward@… 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)

Change History (1)

comment:1 by J-Paul Mesnage, 16 years ago

Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.