Modify

Opened 5 years ago

Closed 5 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 Changed 5 years ago by guinness

  • Milestone set to 3.3.15.1
  • Owner set to guinness
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11419] in version: 3.3.15.1

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 owner will remain guinness.
Author


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

 
Note: See TracTickets for help on using tickets.