Go to Post We can't be afraid to critique the existing system. If we don't, how will it ever get better? - Jaine Perotti [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
  #5   Spotlight this post!  
Unread 03-02-2006, 18:12
Calvin Calvin is offline
Registered User
no team
 
Join Date: Feb 2005
Location: Portland OR
Posts: 105
Calvin has a spectacular aura aboutCalvin has a spectacular aura about
Re: Beginning programmer: Variable question HELP!!!

wow thanks for the quick reply,
I figured out a way to do it with two buttons. Now it works fine.

I completely forgot about the quick loop, and started questioning my programming skills.

PHP Code:
/////**** Start of RELAY 7 code ****/////
    
if(bob7 == 0)
    {
       
printf("Bob7 = 0\r");
       
relay7_fwd 1;
    }
    if(
bob7 == 1)
    {
       
printf("Bob7 = 1\r");
       
relay7_fwd 0;
    }
    if(
bob7 == 2){printf("Bob7 = 2\r");}
    
    if(
bob7 == && p1_sw_trig){bob7 0;}
    if(
bob7 == && p1_sw_top){bob7 1;}
    if(
bob7 == && p1_sw_trig){bob7 0;}
/////**** End of RELAY 7 code ****///// 

Last edited by Calvin : 03-02-2006 at 22:29.
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
VEX programming Gene F Programming 14 08-08-2006 22:21
Printf Oddity : Programming Challange DarkAlex Programming 7 21-03-2005 08:12
have a question to ask about Double Solenoids to one spike programming davelu Programming 3 22-02-2005 09:52
General programming question mikesown Programming 1 07-02-2005 16:09
'Fix It Window' and Programming.... JMac Programming 19 25-01-2005 18:57


All times are GMT -5. The time now is 20:27.

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