Thanks for stepping in to help me… I appreciate it!
I have several hundred items of help text that I need to be able to toggle. Each piece of help text is for a specific field in my data structure. I don’t want to create several hundred separate variables as they will be very hard to manage.
My app is multi-lingual, so each field is assigned a number, so for example, in my contacts table, first_name is 1000, last_name is 1010, etc. They are non contiguous for lots of important practical reasons.
So my planned implementation for toggling the help text is with a data structure in the database which is basically a non contiguous array of booleans. They are all set to 0 in the database, so like this:
I read them into a variable in my app called
show_help with the assignment:
and from that I can read the binary values with the syntax:
However since these are toggle variables, I also need to be able to assign to the boolean value of
show_help.value.1010 and this is what I cannot work out how to do.
I hope that helps to explain!