Modify

Opened 15 years ago

Closed 15 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 Changed 15 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from new to closed

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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.