Android Question What is the meaning of "$" at CustomListView example?

Alphaw

Member
Licensed User
Longtime User
Dear all,

When I download the new one CustomListView file at https://www.b4x.com/android/forum/t...ew-a-flexible-list-based-on-scrollview.19567/ , and I find that there is some "$" inside the code, e.g.
B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("1")
    clv1.AddTextItem("Aaaa", "a")
    clv1.AddTextItem("Aaaa" & CRLF & "Bbbb", "b")
    clv1.AddTextItem("Aaaa" & CRLF & "Bbbb" & CRLF & "Cccc", "c")
    clv1.AddTextItem("Aaaa" & CRLF & "Bbbb" & CRLF & "Cccc" & CRLF & "Dddd" , "d")
    clv1.AddTextItem("Aaaa" & CRLF & "Bbbb" & CRLF & "Cccc" & CRLF & "Dddd" & CRLF & "Eeee", "e")
    For i = 1 To 10
        clv2.Add(CreateListItem($"Item #${i}"$, clv2.AsView.Width, 70dip), 70dip, $"Item #${i}"$)
    Next
End Sub

or
B4X:
Sub CheckBox1_CheckedChange(Checked As Boolean)
    Dim index As Int= clv2.GetItemFromView(Sender)
    Dim pnl As Panel = clv2.GetPanel(index)
    Dim chk As CheckBox = pnl.GetView(2)
    Msgbox($"Item value: ${clv2.GetValue(index)}
Check value: ${chk.Checked}"$, "")
End Sub

Question: what is the meaning of "$" and why using it? Besides this class, will I need to using "$" in other class?

I am hoping to know more about the usage of "$". Thank you for the help!!!!!

Alpha
 

Heinz

Active Member
Licensed User
Longtime User
it seems to be an automatic place holder.
with this you don't need konvert integer to string ?

perhaps, somewhere can tell more about this ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top