J Jcastisoft New Member Oct 24, 2023 #1 Hello All I am new on B4J, I´m to try make some samples and not know why the result of the firts scripts. put image. Is the result correct? Sorry for my bad english language Attachments error.png 16.7 KB · Views: 121
Hello All I am new on B4J, I´m to try make some samples and not know why the result of the firts scripts. put image. Is the result correct? Sorry for my bad english language
stevel05 Expert Licensed User Longtime User Oct 24, 2023 #2 Click the arrows in the log to see which line the output relates to. I just tried your code and it seems to work correctly. Upvote 0
Click the arrows in the log to see which line the output relates to. I just tried your code and it seems to work correctly.
W walt61 Active Member Licensed User Longtime User Oct 24, 2023 #3 Your log will also be easier to follow if you do something like this: B4X: Log("A=" & A) ... Log("B1=" & B) ... Log("B2=" & B) Upvote 0
Your log will also be easier to follow if you do something like this: B4X: Log("A=" & A) ... Log("B1=" & B) ... Log("B2=" & B)
S Spavlyuk Active Member Licensed User Oct 24, 2023 #4 Yes, the result is correct. Functions parameters are copies, not the original value. If you want to modify the original value, you have 2 options: https://www.b4x.com/android/forum/threads/passing-parameters-by-reference.30368/#post-176338 Upvote 0
Yes, the result is correct. Functions parameters are copies, not the original value. If you want to modify the original value, you have 2 options: https://www.b4x.com/android/forum/threads/passing-parameters-by-reference.30368/#post-176338
J Jcastisoft New Member Oct 24, 2023 #5 Thank very much to all. I was on big mistake. I have to look much more the code. Upvote 0