Modify

Opened 11 years ago

Closed 11 years ago

#3079 closed Bug (Fixed)

_StringInsert(): add Remark for clarity

Reported by: c.haslam Owned by: guinness
Milestone: 3.3.15.1 Component: Documentation
Version: 3.3.15.0 Severity: None
Keywords: Cc:

Description

As the help is now, it is not clear whether the string is inserted before or after $iPosition.

I suggest adding a Remark:

Inserts the string after $iPosition characters of $sString. For $iPositon < 0, inserts it before -$iPosition characters from the end of $sString.

This is, to me, a bit strange, but this is the way it is!

I have checked the code, and run a simple example:

#include <String.au3>
Local $t='CatSukie'
MsgBox(0,'',_StringInsert($t,'Jack',3))
MsgBox(0,'',_StringInsert($t,'Jack',-5))

Attachments (0)

Change History (1)

comment:1 by guinness, 11 years ago

Milestone: 3.3.15.1
Owner: set to guinness
Resolution: Fixed
Status: newclosed

Fixed by revision [11419] in version: 3.3.15.1

Modify Ticket

Action
as closed The owner will remain guinness.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.