programmatically select a resource

I like to programmatically select a resource in the FNCPlanner   - for example the second resource -  and then with SelectCells select some cells.

SelectCells works, but i don't know how to  programmatically select a resource in the FNCPlanner .

 

Regards,
Bert

This selects resource 2 , timeslot 4 to 6

tmsfncplanner1.SelectCells(MakeCell(2,4),MakeCell(2,6));
Problem solved..........thx