Modify ↓
#920 closed Bug (No Bug)
StringInStr does not work correctly
| Reported by: | blckbrd | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
When you use the sample:
The starting position of the search does not work correctly. It always uses the first position.
Example1:
$location = StringInStr("test12345,test1234,test123,test12,test12,test1",",",0, 1) ; Find the firsy occurance of "," starting from postion 0. Result = 10
MsgBox(0,"",$location)
Example 2
$location = StringInStr("test12345,test1234,test123,test12,test12,test1",",",20, 1) ; Find the firsy occurance of "," starting from postion 0. Result is still 10
MsgBox(0,"",$location)
Attachments (0)
Change History (1)
comment:1 by , on Apr 22, 2009 at 7:24:23 AM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

I suggest you re-evaluate your code. It's working as designed and as written.