Bug 63123 - dir "*.ext" return same result as dir "*" but it shudnot!
Summary: dir "*.ext" return same result as dir "*" but it shudnot!
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.0.1.2 release
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-04 14:27 UTC by Žajla
Modified: 2013-07-01 06:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Macro in file not working as expected! (9.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-04-05 09:36 UTC, Žajla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Žajla 2013-04-04 14:27:36 UTC
Looking with macro for a specific file which part name is in cell in specific path return all files in that path. In version 3.6.4 the same macro work just fine (it return only the file which was looking for)!

Macro sample:
"function  cpy_impl(partName As String) As string
    Dim startPath as String
	dim xfil as string
    Dim FileX as String
    cpy_impl = "" 
    
    startPath = "d:\My Documents\_scan\ZAH\" 		'direktorij kjer se išče datoteko'

	ending = "*.pdf" 		'*.txt je privzeto za končnice txt'
     
  rem Xfil = (converttourl(startPath & (partName + ending)))
  Xfil = ((startPath & (partName + ending)))
    FileX = ( Dir (Xfil))
   While (FileX <> "")
         cpy_impl = cpy_impl + FileX + ", "
         FileX = Dir
         
   Wend
End function 
"
Comment 1 Rainer Bielefeld Retired 2013-04-04 15:08:04 UTC
@Žajla:
Please Attach a (Writer) document with Start button and  complete working Macro in it so that tester only will have to modify the HDD path in the macro.
Comment 2 Žajla 2013-04-05 09:36:26 UTC
Created attachment 77469 [details]
Macro in file not working as expected!
Comment 3 Rainer Bielefeld Retired 2013-04-05 10:10:28 UTC
Well, that document only contains a Basic Function what does not work at all.
Comment 4 Žajla 2013-04-10 13:21:46 UTC
DIR function doesnot recognise wildcard characters!
Comment 5 Žajla 2013-07-01 06:14:51 UTC
Solved with version 4.0.4.2!