RobotStudio event

EventLog Catergories

Hi All
 

I am trying to display controller events on a custom page on the FlexPendant. I managed to achieve this by using the code: 

cat = log.GetCategory(CategoryType.Program);  where I access the catergory type directly i.e Program, but when I use the enumeration of the catergory type using array indexing these fails. The code for this is:

cat = log.GetCategory[4];

May you please assist on how I can solve this problem.

I am using:           RAB5.11.01, RS5.11, VS2008

 

Thank You



Our deepest fear is not that we are inadequate, but powerful beyond measures!