I try App from @LucaMs.
I put the code in B4XPage ( @Erel example ThreePagesExample).
The code from @LucaMs is working fine, but in B4XPages i get error:
B4A Version: 10.2
Java Version: 11
Parsing code. (0.18s)
Building folders structure. (0.05s)
Running custom action. (0.05s)
Compiling code. (0.73s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (1.26s)
Compiling generated Java code. Error
B4A line: 83
card_name = Regex.Split(\
src\b4a\example\ccrd.java:141: error: cannot find symbol
_card_name = parent.__c.Regex.Split("_",BA.ObjectToString(_tappedcard._gettag()))[(int) (0)].replace("_"," ").replace(".png","");
^
symbol: method _gettag()
location: variable _tappedcard of type b4ximageview
And the code:
B4A line 83: here is line 9
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I have no idea, what i make wrong.
			
			I put the code in B4XPage ( @Erel example ThreePagesExample).
The code from @LucaMs is working fine, but in B4XPages i get error:
B4A Version: 10.2
Java Version: 11
Parsing code. (0.18s)
Building folders structure. (0.05s)
Running custom action. (0.05s)
Compiling code. (0.73s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (1.26s)
Compiling generated Java code. Error
B4A line: 83
card_name = Regex.Split(\
src\b4a\example\ccrd.java:141: error: cannot find symbol
_card_name = parent.__c.Regex.Split("_",BA.ObjectToString(_tappedcard._gettag()))[(int) (0)].replace("_"," ").replace(".png","");
^
symbol: method _gettag()
location: variable _tappedcard of type b4ximageview
And the code:
B4A line 83: here is line 9
			
				B4X:
			
		
		
		Sub B4XImgViewCard_OneClick
    Dim  slowd As Int = 50
    Dim card_name As String
      
    If Not(Angle = 0) Then Return 'Wait for card angle to be 0 before spinning the nect card
    Dim TappedCard As B4XImageView = Sender 'Create a sender to capture B4XImageView click
      
    card_name = Regex.Split("_", TappedCard.Tag)(0).Replace("_", " ").Replace(".png", "") 
    LogColor(card_name,Colors.Blue)
  
    Dim CardRotation As Int = Regex.Split("~", TappedCard.Tag)(1) 'Read card position
    CardFace = xui.LoadBitmapResize(File.DirAssets, Regex.Split("~", TappedCard.Tag)(0), CardSize, CardSize, True) 'Load the card face image
    DisableCards(True) 'Disable cards
    If 180 = MapRotation.Get(CardRotation) Then Angle = 180  'Check last tapped card rotation position against the current angle and set the rotation angle
              
    For i = 0 To 180
        #If debug
        slowd= 1
        #end if     
        Sleep(slowd)
          
        Angle = Angle + AddAngle 'Set the angle
        B4XImgViewCard(CardRotation).Rotate(0, Angle + 180, 0) 'Rotate the card to the newly set angle
        Select Angle
            Case 90 'At 90°
                B4XImgViewCard(CardRotation).B4XBitmap = CardFace 'Set card face image
            Case 180 'At 180°                                        'če to izpustim, se karta zavrti za 360
                Angle = 0
                MapRotation.Put(CardRotation, 180) 'Set card rotation to angle
                DisableCards(False) 'Enable cards
                Log("End of Card_ON_Click - 180")
                Return
            Case 270 'At 270°
                B4XImgViewCard(CardRotation).B4XBitmap = CardBack 'Set card back image
              
            Case 360 'At 360°
                Angle = 0
                MapRotation.Put(CardRotation, 0) 'Set card rotation to 0
                DisableCards(False) 'Enable cards
                Log("End of Card_ON_Click - 360")
                Return
        End Select
        Sleep(0) 
    Next
  
End SubI have no idea, what i make wrong.
 
				 
 
		 
 
		 
 
		 
						
					 
 
		 
			 
			 
 
		 
 
		 
 
		 
 
		 
 
		