MarcoRome Expert Licensed User Longtime User Feb 6, 2018 #1 Hi All. I have this code: Code: Copy Dim assegna_posto As Int = Rnd(1, numero_utenti + 1) Dim pp As B4XView = clv_seating_arrangement.GetPanel(i).GetView(0) Dim assegna_numero As B4XView = pp.GetView(0) assegna_numero.Text = assegna_posto All work if i have in xCustomListView a Label or EditText but crash if i have FloatLabeledEditText infact i see in documentation Get or Set text for Supported type: EditText, Button, CheckBox,.... but no for FloatLabeledEditText. Is possibile add this in new Rel ? Thank you
Hi All. I have this code: Code: Copy Dim assegna_posto As Int = Rnd(1, numero_utenti + 1) Dim pp As B4XView = clv_seating_arrangement.GetPanel(i).GetView(0) Dim assegna_numero As B4XView = pp.GetView(0) assegna_numero.Text = assegna_posto All work if i have in xCustomListView a Label or EditText but crash if i have FloatLabeledEditText infact i see in documentation Get or Set text for Supported type: EditText, Button, CheckBox,.... but no for FloatLabeledEditText. Is possibile add this in new Rel ? Thank you
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2018 #2 MarcoRome said: but crash if i have FloatLabeledEditText Click to expand... Always post the error logs... See the supported types for B4XView.Text: https://www.b4x.com/android/forum/pages/results/?query=b4xview.text The solution is simple. You need to cast it to FloatLabeledEditText: Code: Copy Dim fl As FloatLabeledEditText = assegna_numero fl.Text = ... Upvote 0
MarcoRome said: but crash if i have FloatLabeledEditText Click to expand... Always post the error logs... See the supported types for B4XView.Text: https://www.b4x.com/android/forum/pages/results/?query=b4xview.text The solution is simple. You need to cast it to FloatLabeledEditText: Code: Copy Dim fl As FloatLabeledEditText = assegna_numero fl.Text = ...
MarcoRome Expert Licensed User Longtime User Feb 7, 2018 #3 Work without problem Thanks Erel Upvote 0