Modify

Opened 16 years ago

Closed 16 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 Changed 16 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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.