Android Question CallSub X Argument

Mr Blue Sky

Active Member
Licensed User
Longtime User
Hello, Bonjour,

is there a way to call a function of the type CallSub3 but with more than one argument of the type (Object, Sub As String, Argument1, Argument2, Argument3, Argument4, Argument5, Argument6, Argument.etc)
 

Mr Blue Sky

Active Member
Licensed User
Longtime User
this is work for me, thank again

B4X:
# CLASS
Sub Class_Globals
        Dim dashFont As Map
End Sub

Public Sub Initialize
       dashFont.Initialize
End Sub

Sub Timer_tick
      dashFont.Put("fntBRGN", "Value1")
      dashFont.Put("fntVISW", "Value2")
      dashFont.Put("fntVISZ", "Value3")
      dashFont.Put("fntVIUW", "Value4")
      dashFont.Put("fntVYSW", "Value5")
      CallSub2(Main, "fntDash_Value", dashFont)
End Sub

# ACTIVITY MAIN
Public Sub fntDash_Value(Value As Map)
          Log(Value)
BRGN.Text = Value.Get("fntBRGN")
End Sub
 
Last edited:
Upvote 0
Top