How can i do that if the "hit" get to 50 it put on a sound and open another screen?


this didnt work for me

here`s the screen:

If hit.text = 50 then
...

if you mean like this:


it didnt work for me

Where are you calling the hit50 procedure ?

blocks (3)

As pointed out by @ABG...

image
This will never work

You need to provide the text value of a label/textbox component or a variable holding a value, to compare against your number.

I might suggest you change the = to a > as well

so how can i doprovide the text value of a label/textbox component or a variable holding a value, to compare against my number.
(im new)

Where are you currently storing the number?

what do you mean

For example:

image

I think I got it


?

Does it work ?

nope

Is the value in hit.text greater than 50 ?

Someone needs a variable and the increment code pattern.

If you call the hit50 procedure only in the Screen Initialize event, how should it work later during runtime of your app?

Taifun


Well I tried this. It worked for me.

i will try this

yep