I need that this widget when i press to one segments make a control and in case fail that control go back to the default segment automatcly.
How i can reset the segment control? i show you the listener that i’m using:
if db_fn.ExistMoon(target.segmentLabel) then
moonselected = target.segmentLabel
else
native.showAlert( “Error!”, “”, { “OK” } )
– SOMETHING TO RESET THE SEGMENT CONTROL –
end