I made it so that after an action it creates a delete button (dynamic button) and when it’s clicked it deletes the thing which has the same id.
Blocks just check if the the component (dynamic delete button) has the specyfic id and if so then does something if not then doesn’t do anything. It’s put in if any button click so I have to check if it’s the right button.
“Getid” block can’t be used with objects not created dynamically. Probably you try to press button created with kodular interface and your “GetId” block returns nothing.
No, it happens when I click any button since it’s when any button.clicked. I took out the then blocks to see what caused it and it’s the part of the code i sent u.
Uhh I don’t really want to show whole code because it is quite a good app and the best app, you can recreate it with the blocks I send u, when the screen initalizes you create the button with blocks I’ve sent you, then add the if any button.click blocks and to then put something liek change label1.text to workks and do the onlyNumbers procedure.
Same, It’s not an issue with the procedure tho. I used it on tons of other blocks and it worked perfectly fine (yes I used it for get id block too). I don’t know why this isn’t, I mean it is working as intended it just shows an error which ruins the app when exported.
Thanks, can I just ask what should I do to specify which delete button is it? Because under each video there’s a delete button with the id of “deleteVid” and a number like 1 when another video is created its the same id but with number 2 and so on. So how do I check what number is the button that is clicked on?