Hi all
what the best way, correct to make this code in b4a?
i made
but have a way to make this with tenary, 1 line?
as Experienced programmers as you simplify this code?
what the best way, correct to make this code in b4a?
B4X:
For i = 1 to 31
spdia.Add(i < 10 ? "0".concat(i) : i);
next
i made
B4X:
For i = 1 To 31
If i < 10 Then
spdia.Add(0&i)
Else
spdia.Add(i)
End If
Next
but have a way to make this with tenary, 1 line?
as Experienced programmers as you simplify this code?