I am trying to avoid the following situation in Chora programming:
Using switch case statement for each index to find the corrosponding String::Index_X;
Index can go from 0-128, i want to load the string called Index_(index);
Is this possible?
I expect this is not possible, but i am asking just in case,
Thank you in advance!
if the number and the content of the strings is predetermined, the approach of using switch-case statement is more efficient. C compiler generates well optimized code for switch-case statements.Loading strings dynamically means that you have to take care of finding the right string and decoding/decompressing it.
If loading the strings is essential, you will need to implement the desired operation in native code section. In such case see also the section Be careful when exchanging strings.
Does it help you further?
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!