program = nxt.GetCurrentProgram();
====Example - Get current program====
function OnStart()
{
nxt = app.CreateNxt();
app.SetMenu( "Connect,Get Program" );
}
function OnMenu( name )
{
if( name=="Connect" )
nxt.ShowDevices();
else if( name=="Get Program" )
{
program = nxt.GetCurrentProgram();
app.ShowPopup( program );
}
}