Error on textbox blank

hi
i’m using a custom dialog in which i have some textboxes

when i delete totally a text from one of them i get the error

Property setter was expecting a com.google.appinventor.components.runtime.Label component but got a String instead.
Note: You will not see another error reported for 5 seconds.

what does it mean?

Post screenshot of your blocks

1 Like

It means you are giving a wrong type of data to the block.
That block receives only a component ID block (the green one at the very bottom) but you passed a string instead (a simple text).

3 Likes

thanks both
that’s the incriminated block


for some reason it does not work and give this errore

i have to use this instead, wasting more blocks

blocks%20(4)

i use this stuff to make visible a label when i write something in some textboxes

2 Likes

1 Like

2 Likes

Right, I was a jerk​:expressionless:

No, just a silly mistake

Btw, switch true and false in my example above to match your query

2 Likes

Or add not
bild

Btw, use this namings for your components, as it took me a while to figure out what was what

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.