I wish to have a text file named "Features" which will contain a list of the names of a variety of controls in my UI which I want to enable/disable or show/hide.
In this way I will customise the UI to suit the requirements of each user at runtime.
I thought this would be simple, but I've hit a roadblock and so how do I use the string I read from the Features file to enable or disable the control with that ID?
For example I have a comboBox:
and so if I read "cmbPort" as a string from the Features file, how do I use that to disable the ComboBox control which in code would be:
Thanks in anticipation of any assistance.
In this way I will customise the UI to suit the requirements of each user at runtime.
I thought this would be simple, but I've hit a roadblock and so how do I use the string I read from the Features file to enable or disable the control with that ID?
For example I have a comboBox:
B4X:
Private cmbPort As ComboBox
and so if I read "cmbPort" as a string from the Features file, how do I use that to disable the ComboBox control which in code would be:
B4X:
cmbPort.Enabled = False
Thanks in anticipation of any assistance.