PDA

View Full Version : Adding member eith Flexscript


Lars-Olof Leven
08-22-2007, 02:29 AM
Hi,

Is it possibly to add members to a MTBFMTTR object with Flexscript?
I want to be able to add and remove objects to a MTBFMTTR object.

What I do is I create an instance of a MTBFMTTR object called MM and rename it to MTBF1 (if MTBF1 does not exist), now I want to add the processes that should use MTBF1. There are also cases where MTBF1 already exist and have members, these members I want to be able to remove.

Is this possibly to do in Flexscript and how? Have tried to find the commands but had no luck (probably I missed the commands).

Lars-Olof

Pablo Concha
08-22-2007, 07:54 AM
Hello,

i think the command for this is memberadd(process to add, MTBF MTTR, 2 ) .. last param is 2 for MTBFMTTR and 1 for timetables... for removing is memberremove(same parameters)..

memberadd(process to add, "MTBF1",2); //for your case...

regards...

Pablo C.

Lars-Olof Leven
08-22-2007, 08:00 AM
Thanks,

It was I thought, that I missed the commands when I was looking in the help for the commands.

Thanks again for the help.

Lars-Olof