Ace08 Posted October 21, 2010 Posted October 21, 2010 Uhm hi guys its been a while since i've posted in this forum, so far my project is almost finished just want to ask another question, what i want to have is a listview that would look something like a spreadsheet with cells, i've searched for this and found a sample code but i cannot figure it out where the orginal coder put the codes i am looking for. here is the code i've found: expandcollapse popup#Include <File.au3> #include<array.au3> $Root=RecurseDir(FileSelectFolder("SELECT FOLDER","")) ListDir($Root) $Root=ArrayListDir(ListDir($Root)) _ArrayDisplay($Root) Exit Func RecurseDir($directory) local $DirList $DirList = _FileListToArray($directory,"*.*", 2) dim $DirTemp[2] $DirTemp[0]=$directory if UBound($DirList)>1 Then for $i=1 to UBound($DirList)-1 ReDim $DirTemp[UBound($DirList)] $DirTemp[$i]=RecurseDir($directory & "\" & $DirList[$i]) Next EndIf return $DirTemp EndFunc Func ListDir($directory) dim $DirName="" if IsArray($directory) then $DirName=$directory[0] & ";" for $i=1 to UBound($directory)-1 if IsArray($directory[$i]) then $DirName=$DirName & ListDir($directory[$i]) EndIf next Return $DirName EndIf EndFunc Func ArrayListDir($DirList) dim $DirTemp[1] while 1 if stringlen($DirList) = 0 Then ExitLoop Else ReDim $DirTemp[UBound($DirTemp)+1] $DirTemp[0]=UBound($DirTemp)-1 $DirTemp[UBound($DirTemp)-1]=stringleft($DirList,stringinstr($Dirlist,";",1)-1) $DirList=stringright($DirList,stringlen($DirList)-stringinstr($Dirlist,";",1)) EndIf WEnd Return $DirTemp EndFunc Work smarter not harder.My First Posted Script: DataBase
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now