Issue 92672 - ArrayoutofString changed - code does not work
Summary: ArrayoutofString changed - code does not work
Status: CLOSED DUPLICATE of issue 90796
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: Unknown All
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-11 16:34 UTC by thomaskrumbein
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description thomaskrumbein 2008-08-11 16:34:57 UTC
Using the "Tools" library you have changed the Code of the macro
"ArrayoutofString". 
Unfortuantly a lot of other small and usefull maros used this part of code - and
now do not work any longer. 
Example: FileNameoutofPath
It now returns the first element of the array not the last one!

Code should now be changed to:

Function FileNameoutofPath(ByVal Path as String, Optional Separator as String)
as String
Dim SepList() as String
	If IsMissing(Separator) Then
		Path = ConvertFromUrl(Path)
		Separator = GetPathSeparator()		
	End If
	SepList() = ArrayoutofString(Path, Separator)
	FileNameoutofPath = SepList(ubound(SepList()))
End Function

So it work like before. Because this Funtion would be used in maros like
"DirectoryOutofPath" a lot of code designed in former versions did not work any
longer. 

Please check and repair the code in tools.
Comment 1 jsc 2008-08-12 08:55:04 UTC
thas was a regression by applying a wrong patch. It is already fixed in dev300m24

*** This issue has been marked as a duplicate of 90796 ***
Comment 2 jsc 2008-08-12 08:55:29 UTC
closed