Opened 14 years ago

Closed 14 years ago

#920 closed Bug (No Bug)

StringInStr does not work correctly

Reported by: blckbrd Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


When you use the sample:

The starting position of the search does not work correctly. It always uses the first position.


$location = StringInStr("test12345,test1234,test123,test12,test12,test1",",",0, 1) ; Find the firsy occurance of "," starting from postion 0. Result = 10

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

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Valik

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

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

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

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.