So yeah, I am doing something wrong with the join block in the photo, and global ids is initialised to the number 1. Anyone see a mistake here? I'm using the dynamic components extension, and if I replace the join block with a number or a string, it works
I'm not familiar with the component, but, to get help from those who are, it's really difficult to answer, because you don't show more code, and you also don't actually say what goes wrong (Does it crash the app? Fail to compile? Is there an error message? Does it run, but give an incorrect output?). Those things really are necessary if you want help.
Probably the variable "global ids" is not a string, or empty, or null ? Or, after the underscore character, is there a blank (a space) ?
If you put into a label the result of the join, do you obtain the same error ?
That trailing s in the global name ids suggests it's a list.
Lots to choke on there.
Alternatively, we have had posts where extensions can't digest JOIN inputs. Maybe the BLE extension, a long time ago?
True. Try with a local variable to set the join...
Hey, thanks for the replies
After a long while of troubleshooting, I think there is a bug involved.
For more context, I'm trying to create a button which has an id of a a string joined with a variable which is initialised to 1. The id of the arrangement the button is created in is global ids.
I've already tried using a local variable, but it didn't work either.
I also tried using setting a global variable to the joined text, but it didn't work either.
The error given is "unknown error" and did not create any component.
Also if I replace the join block with a number, or string it works.
You don't need dynamic components anyway
Keep your data dynamic, and your display fixed.
For examples, search this board for Wordle In a Day and Go Scroll Yourself.
Therefore it seems that the "id" shall be resolved at compilation level and not in real time (during the app execution).
I don't know if the following will help you, but to create a custom numeric keyboard I've used the "any component" method as follows.
At design level I've designed the keyboard:
At blocks level, as first, I've set a list of buttons:
Then, at runtime, the any Button.click method behaves like a custom keyboard.
(the following event contains two sections because I need to get two different values at different times during the app's execution).
I don't know if it helps, but just for sake of sharing the idea...
Best wishes !
That would be appropriate for unknown code.
Maybe show us the code?