Modify

Opened 17 years ago

Closed 17 years ago

#859 closed Bug (No Bug)

Source code small change of UDF _StringExplode( )

Reported by: txj Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: _StringExplode Cc:

Description

Hi !

I found a small shortage, in UDF _StringExplode( ), when last character of string is delimiter, last element of return array is null string.

demo code like this:

#include <array.au3>
#include <string.au3>

$aReturn = _StringExplode("c:\dir1\dir2\", "\")
_ArrayDisplay($aReturn,"$aReturn[ ] value")   ; display array
If $aReturn[3] = "" Then MsgBox(0, "value", "last element of $aReturn[ ] is null string.")

run this code, you can see the last element of return array $aReturn is null string.

maybe change source code of UDF _StringExplode( ) to substract the last element is more better.

this shortage exists in AutoIT 3.3.0.0.

Attachments (0)

Change History (1)

comment:1 by Valik, 17 years ago

Resolution: No Bug
Status: newclosed

Closing just like #858. Same non-issue, different function. Same resolution.

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.