Its my due date tommorrow how can i fix Property setter was expecting a com.google.appinventor.components.runtime.Button component but got a string instead

image

In your clock timer event, your two variables are strings, not button components.

You have the same issue in your "else" clause.

i can't understand, i change the get global first and sec btn?

global firsBtn and global secBtn = card.jpg

This is not a button component. You need to replace these variables with the button components you want to enable. Then in your else clause:

image

again you need button components in the of component sockets

im sorry i can't understand you

i don't know what to do i only followed a tutorial on youtube

Then review your work against that of the youtube "tutorial". (you might share the link ?)

It is not clear from your blocks as to which buttons you want to enable and change/set images for ?

the app im making is an matching game so the global first and second button represents the 1st and 2nd button you press then if doesnt match it will flip back to the image "card.jpg"

OK, is your clock timer disabled in the designer ?

image

Otherwise it will be firing as soon as you run the app. You need to untick TimerEnabled here.

ok i will try

it doesnt pop up any more thank you so so much for help!!!

Let us hope you get top marks for copying the work of others :slight_smile:

You may get a bonus mark if you cite your sources...

2 Likes

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