B4J Question How to call sub with more than 1 parameters

qey

Member
Hello everyone !
Is it possible to call sub if it have more than 1 parameters? If can, how ?

Example code:

Sub MySub (FirstName As String, LastName As String, Age As Int)
...
End Sub
 

LucaMs

Expert
Licensed User
Longtime User
He probably intends to use CallSub; there are versions CallSub2 and CallSub3, respectively for one parameter and for two. If you need to pass more than two parameters (using CallSub or CallSubDelayed), you could pass a Map or create a custom type and pass a variable of this type.
 
Upvote 1

qey

Member
He probably intends to use CallSub; there are versions CallSub2 and CallSub3, respectively for one parameter and for two. If you need to pass more than two parameters (using CallSub or CallSubDelayed), you could pass a Map or create a custom type and pass a variable of this type.
Hi LucaMs, thank you for your respond. could you give me some example?
 
Upvote 0
Top