Finding a module from string representation

I have a lot of motor controllers in a project and a lot of relays too. Rather than code for each one, I want to code one function to code all of the relays.

I’m new to the microframework. Is there a method that I can use which will convert a string representation to a control? Something like casting the string “motorDriverL2981” to a motorDriverL298?

@ DanCio - Look at the System.Collections namespace of the MS SDK documentation. A Hashtable may be what you are seeking…