Page 1 of 1

DirList .Directory (Invalid)

Posted: Tue Mar 19, 2013 10:42 pm
by djrikki
Hi,

I know a directory exists yet when I assign it via .Directory, checking .Status reports Invalid. I have set .Directory on numerous occasions with no problems. Is there anything off the top of your head Andreas I should immediately check for?

Very puzzled.

Code: Select all

	If Exists(entry[imageselected]) = True

	    debugprint("this -> " .. entry[imageselected])
	    
             mui.Set("lv-directory","directory", entry[imageselected])
        
            debugprint( mui.Get("lv-directory","status") )
                
            debugprint("erwerer -> " .. mui.Get("lv-directory","directory") )
console output:
this -> Images:animals
Invalid
erwerer ->
[/code]

[/code]

Re: DirList .Directory (Invalid)

Posted: Fri Mar 22, 2013 2:02 pm
by airsoftsoftwair
Hmm, strange. I know that Dirlist uses a separate task to load the directory, so maybe Dirlist.Status isn't refreshed before the subtask has started its work? Does Dirlist.Status keep reporting "Invalid" or does it switch to a different status if you keep querying the attribute after setting the new directory?

Re: DirList .Directory (Invalid)

Posted: Mon Mar 25, 2013 6:05 pm
by djrikki
I tried putting a Wait() in between and printing the status, still reports Invalid. Very strange, not sure how to start debugging this one lol

Re: DirList .Directory (Invalid)

Posted: Wed Mar 27, 2013 6:45 pm
by airsoftsoftwair
Do you have a very small example script and *.xml that shows the issue? Then I can check it myself.