PDA

View Full Version : Pass Tagname as parameter into a function?


nigeltodd
30 Jun 09, 04:59 PM
Is there any known way to do this - ie to have a function which takes a Group tagname and returns a result - eg

GetLvl(Groupname) : integer;
begin
GetLvl := GetCBuslevel(Groupname);
end;


Usage would be
L1 := GetLvl(Groupname);


When dimming a set of lights I wish to return them to the previous levels.

It may be possible to do this by using Recall, although I am not sure how to do this in logic.

Thanks

Nigel

Darren
01 Jul 09, 10:49 AM
Is there any known way to do this - ie to have a function which takes a Group tagname and returns a result - eg

GetLvl(Groupname) : integer;
begin
GetLvl := GetCBuslevel(Groupname);
end;


Usage would be
L1 := GetLvl(Groupname);

This is not possible at the moment. It is in our to do list as #7041


When dimming a set of lights I wish to return them to the previous levels.

It may be possible to do this by using Recall, although I am not sure how to do this in logic.

The normal way of doing this is to have the groups in a scene then store the scene levels and later on when you need to restore the levels, set the scene.