Viston Posted July 11, 2017 Posted July 11, 2017 I'm trying to get the integer value of a widget. Do I convert string to integer? Or how should I approach this? Do I use the RootID to check whether it contains the number I need? This is the widget
FrostBug Posted July 11, 2017 Posted July 11, 2017 Use the widget debugger to see where the number '21' is stored. Tho it's probably in the Message field. Then parse the message to int. 1
HeyImJamie Posted July 11, 2017 Posted July 11, 2017 Use .getMessage of the Widget and then like Frost said, use Integer.parseInt() 2
Viston Posted July 11, 2017 Author Posted July 11, 2017 (edited) 32 minutes ago, FrostBug said: Use the widget debugger to see where the number '21' is stored. Tho it's probably in the Message field. Then parse the message to int. 30 minutes ago, HeyImJamie said: Use .getMessage of the Widget and then like Frost said, use Integer.parseInt() Fixed Apparently I was using the wrong widget Edited July 11, 2017 by Visty
HeyImJamie Posted July 11, 2017 Posted July 11, 2017 5 minutes ago, Visty said: Fixed Apparently I was using the wrong widget Pleb x