To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 11598
11597  |  11599
Subject: 
Re: Desperate Programming Question
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Sat, 26 Jun 2004 00:31:18 GMT
Viewed: 
476 times
  
In lugnet.org.ca.rtltoronto, Iain Hendry wrote:
I'm so screwed, and I can't figure out why this won't work.  Yes, it's for
tomorrow.  Language is NQC.

Well I haven't used NQC yet but...

whiteRope = ropeColour // put the current value of the light sensor, into
the variable whiteRope
whiteRope =- 5 // take 5 off the value of whiteRope

...I believe if it's like C, that should be:

whiteRope -= 5 (swap - and =)

Your code would result in whiteRope always having the value -5.

HTH

ROSCO



Message has 1 Reply:
  Re: Desperate Programming Question
 
(...) Thanks, Ross! I think I got it. (I think.) Iain (20 years ago, 26-Jun-04, to lugnet.org.ca.rtltoronto)

Message is in Reply To:
  Desperate Programming Question
 
I'm so screwed, and I can't figure out why this won't work. Yes, it's for tomorrow. Language is NQC. I have a light sensor looking at the rope. I want to "zero" it, after I latch on and start climbing, and then say, basically "Hey, when the light (...) (20 years ago, 26-Jun-04, to lugnet.org.ca.rtltoronto)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR