Dim Buttons As List = Array(Button1, Button2, Button3, Button4, Button5)
Dim btn As B4XView = Buttons.Get(1)
btn.Text = "boring"
Buttons.Get As B4XView(2).Text = "less boring"
Button5.Text = Buttons.Get As B4XView(2).Text
Dim m As Map = CreateMap("ttt": " 123 ;lkasd ")
Button4.Text = m.Get As String("ttt").Trim
Root.GetView As WebView(8).LoadURL("https://www.b4x.com") '8 is the view's index
Wait, is this B4X version 2.0? ?
What I know is we use “As” when declaring a variable with Public/Private/Dim or when defining the return type of a function.
1. I never know we can declare something
As array(x) and directly to it’s property.
2. I think I need a new introduction to
.Get and
.Get(x) methods.
3. SomeMap.Get As
String("xxx").Trim is crazy. What is this type String(“Some Text”)?
4. Root
.GetView As WebView(8).LoadURL("http...”)?
Oh no... my brain can’t process anymore!!!
Object.Method As View(i).Method(“xxx”) ?
Now, I am new to B4X. ?