PDA

View Full Version : LUA nested variable help



yonu
December 23rd, 2010, 09:04 PM
I am in need of some help I am working on a section of LUA code for my netremote skin

local czone = NetRemote.GetVariable('MP["<zone>"].PlaylistLength');

the problerm is if i replace <zone> with the name of the zone it works however I am unable to get it working using a nested variable any help on this would be great.

Thanks,
Reg

Mike C
December 24th, 2010, 09:12 AM
I am in need of some help I am working on a section of LUA code for my netremote skin

local czone = NetRemote.GetVariable('MP["<zone>"].PlaylistLength');

the problerm is if i replace <zone> with the name of the zone it works however I am unable to get it working using a nested variable any help on this would be great.

Thanks,
Reg


would you show the block of code?

yonu
December 24th, 2010, 01:27 PM
sure here is the code block al it does at the moment though is print the results

function GoZone(zone)
print(zone)
local czone = NetRemote.GetVariable('MP["<zone>"].PlaylistLength');
print(czone)
print(zone)

it gets zone from the button press here is the command that the button sends is

GoZone("<Zones[0].Name>")

Thanks,
Reg

yonu
January 8th, 2011, 12:16 PM
is there no one that has an idea I need to figure out away to get this sorted out

Thanks