Modify

Opened 17 years ago

Closed 17 years ago

#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 Valik, 17 years ago

Resolution: No Bug
Status: newclosed

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

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.