Why am I getting this error?


It was TIMAI2's suggestion.
I created a list of 10 labels.
But it gives an error like this

You are using strings instead of components change it to actually label component

I want to fill 10 label listview elements.
I created this for testing.
What do you mean by "Label Component"?

I mean using a label component from pallete or any text component you're using simple string in place of component

What color are the blocks in global lblBHs?

It is not possible to understand what your goal is...

But such an error message is appearing for the following reasons:

  • The list was probably created not with the components themselves, but with the text of the components.

  • The result of the Block 'is in list?' will only be a logical operator, which will indicate True or False according the content you have placed when creating the List.

If it were going to work out what you programmed, it would only gather the text 'Label' with a logical operator 'false' (if what is on the list are the texts of the labels) and at the end of the process you would have converted the Text of each item on the list to 'Label False', but would not see anything at all. Obviously this is not what you want.

When these signs of interrogation appear in the blocks, it is because there is something wrong with them... and click on this interrogation can provide a guess of what happens or directly point the error.

image

So, first define what your goal is... but certainly there will be no need to use this logical operator and the programming will be different.

Lito

@>-->---

1 Like

I am getting data from the site.

I am making 2 lists from the data.

Then I can't get the labels in the list

Then I Label the Listed Items, Of Course But It's a Very Long Block. I Have to Take It with a Loop


There is no problem here, but very long blocks are formed


Unfortunately, the emulator only goes back to normal once in 100 attempts. That's why I couldn't share my screenshot.


When I saw TIMAI2's Solution suggestion, I listed the Tags and tried it

As it already has been said, uae label components
It is the last block in the label drawer

Taifun

1 Like

Thank you very much :+1:

:flushed: :flushed: :flushed:

1 Like

You were not there. I was going to thank you first. Thank you very much.

:man_facepalming:

@>-->---

Now I have another problem that I can't solve.

The numbers in the list come to the labels.

but It is not possible to operate with numbers.

It gives an error

I used TextBox instead of Label. But I still got the same error

Please elaborate and provide a screenshot of your relevant blocks
.

What abour revealing the exact error message?

Taifun


"The operation modulo cannot accept the arguments: , ["150"], [com.google.appinventor.components.runtime.TextBox@ec39260]
"