Modify ↓
Opened on Jun 4, 2012 at 1:32:23 PM
Closed on Sep 6, 2013 at 1:43:07 PM
#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 by , on Jul 21, 2013 at 11:31:57 PM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
comment:3 by , on Sep 6, 2013 at 1:42:47 PM
| Resolution: | Rejected |
|---|---|
| Status: | closed → reopened |
comment:4 by , on Sep 6, 2013 at 1:43:07 PM
| Resolution: | → No Bug |
|---|---|
| Status: | reopened → closed |
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