Hi there,
So all I want here is a button. It should display Hello when odd number of clicks and nothing when even number of clicks.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
1st click - Displays Hello
2nd click - Hides Hello
3rd click - Goes in the Else part (which is correct) but even after executing
Label1.Text = "Hello" and Label1.Visible = True, it doesn't display Hello.
I am just curious if I need to do something after using SetVisibleAnimated?
Thank you
Additional question: Can you please tell me what internal process happens when SetVisibleAnimated function is executed? Specifically I would like to know what happens when a button is clicked several times between 0 and 1000 ms when SetVisibleAnimated function is executed.
			
			So all I want here is a button. It should display Hello when odd number of clicks and nothing when even number of clicks.
			
				B4X:
			
		
		
		Sub Globals
    Dim Label1 As Label
    Dim Button1 As Button
    Dim click As Int = 0
End Sub
Sub Button1_Click
    click = click + 1
  
    If click = 2 Then
        Label1.SetVisibleAnimated("1000", False)
        click = 0
    Else
        Label1.Text = "Hello"
        Label1.Visible = True
    End If
  
End Sub1st click - Displays Hello
2nd click - Hides Hello
3rd click - Goes in the Else part (which is correct) but even after executing
Label1.Text = "Hello" and Label1.Visible = True, it doesn't display Hello.
I am just curious if I need to do something after using SetVisibleAnimated?
Thank you
Additional question: Can you please tell me what internal process happens when SetVisibleAnimated function is executed? Specifically I would like to know what happens when a button is clicked several times between 0 and 1000 ms when SetVisibleAnimated function is executed.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		