B4J Question [banano] SKcard array and get it's datas problem

tango

Active Member
Licensed User
Longtime User
hi, i want to add 10 skcards with uniqe id and get it's all datas.

For i=1 To 10
SKRowx.AddFlexColumns(1,1,2,3)
SKRowx.Column(1).MarginTop= "20px"
SKRowx.Column(1).MarginBottom= "20px"
SKRowx.Column(1).PaddingTop= "20px"
SKRowx.Column(1).PaddingBottom= "20px"
SKRowx.Column(1).Add.CardWithActions( "card"&i , "card" , "#fff" , "./assets/"&i&".jpg" , "background" , "top" , "anystring"&i , "OK;Cancel" , "button-primary;plain" , True)
Next

and

Private Sub card_ButtonClicked (text As String, event As BANanoEvent)
' how get all information with OK ,--> "card"&i , "./assets/"&i&".jpg" , "anystring"&i ,
End Sub
 

tango

Active Member
Licensed User
Longtime User
hi, i want to add 10 skcards with uniqe id and get it's all datas.

For i=1 To 10
SKRowx.AddFlexColumns(1,1,2,3)
SKRowx.Column(1).MarginTop= "20px"
SKRowx.Column(1).MarginBottom= "20px"
SKRowx.Column(1).PaddingTop= "20px"
SKRowx.Column(1).PaddingBottom= "20px"
SKRowx.Column(1).Add.CardWithActions( "card"&i , "card" , "#fff" , "./assets/"&i&".jpg" , "background" , "top" , "anystring"&i , "OK;Cancel" , "button-primary;plain" , True)
Next

and

Private Sub card_ButtonClicked (text As String, event As BANanoEvent)
' how get all information with OK ,--> "card"&i , "./assets/"&i&".jpg" , "anystring"&i ,
End Sub
any idea
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
B4X:
Private Sub card_ButtonClicked (text As String, event As BANanoEvent)
    Dim card As SKCard = Sender '<-------------------------------------
    Log(card.ID)
    Log(card.Image)
    Log(card.Content)
End Sub


Private Sub card_Clicked (event As BANanoEvent)
    Dim card As SKCard = Sender '<-------------------------------------
    Log(card.ID)
    Log(card.Image)
    Log(card.Content)
End Sub
 
Upvote 0
Top