Public Function UniquePathNamesVariantVector( _ ByRef rPaths() As Variant _ , ByRef vPaths() As Variant _ , Optional ByVal vCompare As Variant _ ) As Boolean
Assuming CurDir$ = "C:\Windows" Dim avarIn() As Variant ReDim avarIn(0 to 3) avarIn(1) = "C:\Temp" avarIn(2) = "System" ' Relative to CurDir$ avarIn(3) = "..\Temp" ' Same as avarIn(1) Dim avarOut() As Variant for example UniquePathNamesVariantVector(avarOut(), avarIn()) = True leaves LBound(avarOut) = 0 UBound(avarOut) = 2 IsEmpty(avarOut(0)) = True avarOut(1) = "C:\Temp" avarOut(2) = "C:\Windows\System"See also:
MakePathAbsolute Function UniqueVariantVector Function MakeDirectory Function DirToVariantVector FunctionrPaths: Dynamic, one-dimensional array of Variants that will receive the unique, absolute path names. rPaths will be re-dimensioned from 0 (zero) to the upper bound of vPaths, and the path names are placed in elements 1 (one) through the upper bound.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.