Modify ↓
Opened 13 years ago
Closed 11 years ago
#2210 closed Bug (No Bug)
StringInStr
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.9.4 | Severity: | None |
Keywords: | Cc: |
Description
The below code returns the position of the string, but I think it shouldn't, because the string should be only searched in the last two charakters.
MsgBox(0,"",StringInStr("abcd", "bc", 0, -1, 4, 2))
When seaching from the beginning it works ok, doesn't return the position.
MsgBox(0,"",StringInStr("abcd", "bc", 0, 1, 1, 2))
Attachments (0)
Change History (4)
comment:1 Changed 11 years ago by Jon
- Resolution set to Rejected
- Status changed from new to closed
comment:2 Changed 11 years ago by Jpm
comment:3 Changed 11 years ago by Jpm
- Resolution Rejected deleted
- Status changed from closed to reopened
comment:4 Changed 11 years ago by Jpm
- Resolution set to No Bug
- Status changed from reopened to closed
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.
Note: See
TracTickets for help on using
tickets.
In fact there is no bug.
StringInStr is designed to return the position in the string whatever serching from right.
the first must return 2
and the second as it is scanning only on the 2 first char is not found and return 0 mean not found