Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Flip a boolean local variable with a button (http://www.chiefdelphi.com/forums/showthread.php?t=144523)

bharrison6 23-02-2016 13:58

Flip a boolean local variable with a button
 
I was wondering how I might flip a local Boolean variable using a single button. I can of course use the NOT command and set up a switch to invert the variable anytime the button is pushed. The problem is it will constantly be flipping the variable while the button is held. I want it to only flip it one time and then wait until the button is released and before flipping it again.

Ether 23-02-2016 14:20

Re: Flip a boolean local variable with a button
 
Quote:

Originally Posted by bharrison6 (Post 1545154)
I want it to only flip it one time and then wait until the button is released and before flipping it again.

http://www.chiefdelphi.com/forums/sh...5&postcount=11




All times are GMT -5. The time now is 04:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi