Hi,
I would like to set the posY of a control depending on some properties. So I cooked up the following Expression:
#(switch(string.equals(#latestMediaHandler.tvrecordings.active1.title,),925,string.equals(#latestMediaHandler.tvrecordings.active2.title,),961,string.equals(#latestMediaHandler.tvrecordings.active3.title,),997))
but it does not work. When I put that into a lable I get: "System.InvalidCastException @ MediaPortal.GUI.Library.GUIFunctions.Switch(Object[] args)"
I also tried to use '' instead of the empty string without success.
I would like to set the posY of a control depending on some properties. So I cooked up the following Expression:
#(switch(string.equals(#latestMediaHandler.tvrecordings.active1.title,),925,string.equals(#latestMediaHandler.tvrecordings.active2.title,),961,string.equals(#latestMediaHandler.tvrecordings.active3.title,),997))
but it does not work. When I put that into a lable I get: "System.InvalidCastException @ MediaPortal.GUI.Library.GUIFunctions.Switch(Object[] args)"
I also tried to use '' instead of the empty string without success.