Viston Posted July 11, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
FrostBug Posted July 11, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted July 11, 2017 Share Posted July 11, 2017 Use .getMessage of the Widget and then like Frost said, use Integer.parseInt() 2 Quote Link to comment Share on other sites More sharing options...
Viston Posted July 11, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted July 11, 2017 Share Posted July 11, 2017 5 minutes ago, Visty said: Fixed Apparently I was using the wrong widget Pleb x Quote Link to comment Share on other sites More sharing options...