W Wolodymyr Member Oct 5, 2020 #1 Problem with runtime changing Text property of Button. When I set "▶ / ⏸" to Buttons text (caption) in Designer - it is displayed Ok. But when I try change it programmatically by Sub Code: Copy Sub PlayPause_Button_Change (FileName As String) PlayPause_Button.Text= "▶ / ⏸" + FileName End Sub We have this Runtime Error: java.lang.NumberFormatException: For input string: "▶ / ⏸"
Problem with runtime changing Text property of Button. When I set "▶ / ⏸" to Buttons text (caption) in Designer - it is displayed Ok. But when I try change it programmatically by Sub Code: Copy Sub PlayPause_Button_Change (FileName As String) PlayPause_Button.Text= "▶ / ⏸" + FileName End Sub We have this Runtime Error: java.lang.NumberFormatException: For input string: "▶ / ⏸"
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2020 #2 String concatenation operator: & Not +. Upvote 0
W Wolodymyr Member Oct 5, 2020 #3 Yes. My stupid mistake, Sorry. I'm really overheated. All my previous code using "&" for Strings concatenation Upvote 0
Yes. My stupid mistake, Sorry. I'm really overheated. All my previous code using "&" for Strings concatenation