Beja Expert Licensed User Longtime User Oct 9, 2013 #1 Hello friends, Trying to change the button text at run time, returned no error, but no change either.. code: What's missing in this code? B4X: Sub Spinner1_ItemClick (Position As Int, Value As Object) crit = Value Select crit Case "Chn" Button2.Text= "显示" End Select End Sub Any help appreciated! p.s. crit is dimed elsewhere as string
Hello friends, Trying to change the button text at run time, returned no error, but no change either.. code: What's missing in this code? B4X: Sub Spinner1_ItemClick (Position As Int, Value As Object) crit = Value Select crit Case "Chn" Button2.Text= "显示" End Select End Sub Any help appreciated! p.s. crit is dimed elsewhere as string
Erel B4X founder Staff member Licensed User Longtime User Oct 9, 2013 #2 Use the debugger and make sure that the value of crit is actually "Chn". Upvote 0
Beja Expert Licensed User Longtime User Oct 9, 2013 #3 Use the debugger and make sure that the value of crit is actually "Chn" Click to expand... Thank you Erel, That was the culprit! Upvote 0
Use the debugger and make sure that the value of crit is actually "Chn" Click to expand... Thank you Erel, That was the culprit!