Theera Expert Licensed User Longtime User Feb 15, 2025 #1 refer to https://www.b4x.com/android/forum/threads/set-gradient-color-to-a-view.65242/post-437285 , I wonder about amount of colons in the code. How many colons do I insert in the code? B4X: Sub SetGradient(v As View, color1 As Int, color2 As Int, Replace As Boolean) Dim NaObj As NativeObject = Me NaObj.RunMethod("SetGradient::::",Array(v,NaObj.ColorToUIColor(color1),NaObj.ColorToUIColor(color2), Replace)) End Sub Last edited: Feb 15, 2025
refer to https://www.b4x.com/android/forum/threads/set-gradient-color-to-a-view.65242/post-437285 , I wonder about amount of colons in the code. How many colons do I insert in the code? B4X: Sub SetGradient(v As View, color1 As Int, color2 As Int, Replace As Boolean) Dim NaObj As NativeObject = Me NaObj.RunMethod("SetGradient::::",Array(v,NaObj.ColorToUIColor(color1),NaObj.ColorToUIColor(color2), Replace)) End Sub
Solution teddybear Feb 15, 2025 Theera said: Is the number of colons equal to the number of variables? Please answer me. Click to expand... The answer is yes, in Objective-C, each parameter in a method declaration is associated with a colon ( :)
Theera said: Is the number of colons equal to the number of variables? Please answer me. Click to expand... The answer is yes, in Objective-C, each parameter in a method declaration is associated with a colon ( :)
Theera Expert Licensed User Longtime User Feb 15, 2025 #3 teddybear said: That is IOS method Click to expand... Is the number of colons equal to the number of variables? Please answer me. Upvote 0
teddybear said: That is IOS method Click to expand... Is the number of colons equal to the number of variables? Please answer me.
teddybear Well-Known Member Licensed User Feb 15, 2025 #5 Theera said: Is the number of colons equal to the number of variables? Please answer me. Click to expand... The answer is yes, in Objective-C, each parameter in a method declaration is associated with a colon ( :) Last edited: Feb 15, 2025 Upvote 0 Solution
Theera said: Is the number of colons equal to the number of variables? Please answer me. Click to expand... The answer is yes, in Objective-C, each parameter in a method declaration is associated with a colon ( :)