R RichardN Well-Known Member Licensed User Longtime User Aug 10, 2015 #1 A picker view contains text which is actually an attributed string. Is there an easier/smarter coding method to extract a simple string from the selected picker row than this.....? B4X: Dim att as AttributedString Dim s as String att.Initialize("",Null,Null) att = picker1.GetSelectedItem(0) s = att.ToString
A picker view contains text which is actually an attributed string. Is there an easier/smarter coding method to extract a simple string from the selected picker row than this.....? B4X: Dim att as AttributedString Dim s as String att.Initialize("",Null,Null) att = picker1.GetSelectedItem(0) s = att.ToString
Erel B4X founder Staff member Licensed User Longtime User Aug 11, 2015 #2 Yes. You do not need to initialize att. B4X: Sub GetSelected As String Dim att As AttributedString = picker1.GetSelectedItem(0) Return att.ToString End Sub Upvote 0
Yes. You do not need to initialize att. B4X: Sub GetSelected As String Dim att As AttributedString = picker1.GetSelectedItem(0) Return att.ToString End Sub