B4X Basic Language
page 56
Section 5.4.1 For Next
current: In a For–Next loop a same code will be executed a certain number of times.
suggested: In a For–Next loop, the code block will be executed a certain number of times.
Section 5.4.2 For Each
Minor typo (an extra space) in the "Example For - Each:" part:
current: Numbers = Array As Int(1, 3, 5 , 2, 9)
suggested: Numbers = Array As Int(1, 3, 5, 2, 9)
Minor typo (extra space) in the "Example For - Next loop:" part:
current: Numbers = Array As Int(1, 3, 5 , 2, 9)
suggested: Numbers = Array As Int(1, 3, 5, 2, 9)
Page 62, 5.6.5 Parameters says:
In B4X, the parameters are transmitted by value and not by reference.
I'm not sure this is true in all cases. Is it true in this context? Maybe be more specific, as I believe maps, etc., are transmitted by reference. Maybe revise to say:
In B4X, primitive parameters are transmitted by value and not by reference.
Good night!
page 56
Section 5.4.1 For Next
current: In a For–Next loop a same code will be executed a certain number of times.
suggested: In a For–Next loop, the code block will be executed a certain number of times.
Section 5.4.2 For Each
Minor typo (an extra space) in the "Example For - Each:" part:
current: Numbers = Array As Int(1, 3, 5 , 2, 9)
suggested: Numbers = Array As Int(1, 3, 5, 2, 9)
Minor typo (extra space) in the "Example For - Next loop:" part:
current: Numbers = Array As Int(1, 3, 5 , 2, 9)
suggested: Numbers = Array As Int(1, 3, 5, 2, 9)
Page 62, 5.6.5 Parameters says:
In B4X, the parameters are transmitted by value and not by reference.
I'm not sure this is true in all cases. Is it true in this context? Maybe be more specific, as I believe maps, etc., are transmitted by reference. Maybe revise to say:
In B4X, primitive parameters are transmitted by value and not by reference.
Good night!