Public Function PathAndNamesStringToVariantVector( _ ByRef rFiles() As Variant _ , ByVal vList As Variant _ ) As Boolean
Assuming Dim avarFiles() As Variant for example PathAndNamesStringToVariantVector(avarFiles(), "C:\WINDOWS\WIN.INI") = True leaves LBound(avarFiles) = 0 UBound(avarFiles) = 1 IsEmpty(avarFiles(0)) = True avarFiles(1) = "C:\WINDOWS\WIN.INI"Example #2:
Assuming Dim avarFiles() As Variant Dim strList As String strList = "C:\WINDOWS WIN.INI SYSTEM.INI C:\AUTOEXEC.BAT" for example PathAndNamesStringToVariantVector(avarFiles(), strList) = True leaves LBound(avarFiles) = 0 UBound(avarFiles) = 3 IsEmpty(avarFiles(0)) = True avarFiles(1) = "C:\WINDOWS\WIN.INI" avarFiles(2) = "C:\WINDOWS\SYSTEM.INI" avarFiles(3) = "C:\AUTOEXEC.BAT"See also:
DirToVariantVector Function Windows Common Dialog Boxes (Windows API)rPathName: Dynamic, one-dimensional array of Variants that will receive the file name(s) from this function. rPathName will be re-dimensioned from 0 (zero) to the number of files found, and the file names are placed in elements 1 (one) through the number found. rPathNames will be re-dimensioned even if the function encounters an error and returns False.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.