Go to Post Avoid the impulse to shoot from the hip, and find out the full picture before deciding where you stand. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 16-02-2003, 22:30
Coach C's Avatar
Coach C Coach C is offline
Registered User
#0341 (Miss Daisy)
 
Join Date: Nov 2002
Location: Wissahickon High School
Posts: 13
Coach C is an unknown quantity at this point
You probably have something like this:

relayX_fwd = pX_sw_trig

You need something like this:

if (pX_sw_trig) then relayX_fwd = 1
if (pX_sw_top) then relayX_fwd = 0

If using two buttons is out of the question, you'll have to get a bit more creative:

if ((pX_sw_trig ~= LastState) & (pX_sw_trig = 1)) then
relayX_fwd = OpenClose
OpenClose = OpenClose - 1
endif
LastState = pX_sw_trig
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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