DirList .Directory (Invalid)

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

DirList .Directory (Invalid)

Post 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]
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DirList .Directory (Invalid)

Post 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?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: DirList .Directory (Invalid)

Post 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
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: DirList .Directory (Invalid)

Post by airsoftsoftwair »

Do you have a very small example script and *.xml that shows the issue? Then I can check it myself.
Post Reply