Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3276

Push buttons in module pool are not working correctly

$
0
0

Hi all,

 

i have made a simple module pool program on water puzzle . i have 8, 5 and 3 liter container and i need to fill at least one with 4 liter of water to solve the problem. so i made 6 different push buttons for moving water quantity from one to other container.

 

the coding is as follows:

 

case ok_code.

when 'mo85'.      " for moving water from 8L container to 5L

     perform first_routine.

when 'mo83'.      " for moving water from 8L container to 3L       "

     perform second_routine.

when 'mo58'.      " for moving water from 5L container to 8L

     perform third_routine.

when 'mo53'.      " for moving water from 5L container to 3L

     perform fourth_routine.

when 'mo38'.      " for moving water from 3L container to 8L

     perform fifth_routine.

when 'mo35'.      " for moving water from 3L container to 5L

     perform sixth_routine.

 

and the screen looks as follows:

YWATER.PNG

 

so when i press the any button from the six listed for the first time it works but when i press any other button from the six it does not work.

for example i moved water from 8l to 5l so i pressed button "move to 5l" as shown in image . it worked but when i tried other button say "move to 3l" it did not work. where as the clear and result buttons are working fine.

what to do?


Viewing all articles
Browse latest Browse all 3276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>