P petrbury Member Licensed User Longtime User Feb 13, 2013 #1 Hi, In my SW for IOIO board I need to manage digital outputs named Out1, Out2 ... Out10. I'm not able to find out, how to do it by "indirect adressing". I mean something like : for i = 1 to 10 control("Out" & i).write = true next Could You help me with it, please? Petr
Hi, In my SW for IOIO board I need to manage digital outputs named Out1, Out2 ... Out10. I'm not able to find out, how to do it by "indirect adressing". I mean something like : for i = 1 to 10 control("Out" & i).write = true next Could You help me with it, please? Petr
Erel B4X founder Staff member Licensed User Longtime User Feb 14, 2013 #2 You can store the views in an array or list and then access them from the collection. See this example: Tick-Tack-Toe: working with arrays of views Upvote 0
You can store the views in an array or list and then access them from the collection. See this example: Tick-Tack-Toe: working with arrays of views
P petrbury Member Licensed User Longtime User Feb 14, 2013 #3 Thenk You, Erel. It works for me OK now. Petr Upvote 0