To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 8983
8982  |  8984
Subject: 
Re: vb variable size
Newsgroups: 
lugnet.robotics
Date: 
Sun, 12 Dec 1999 21:47:27 GMT
Viewed: 
652 times
  
Hi

The variables are 16 bit signed (-32768 to 32767), but the loop counter is
only an 8 bit unsigned (0 to 255).  When you set the loop counter from a
variable it ignores the high bits and truncates.

Yep you're right Dave and I feel pretty stupid. The loop command is only good
up to 255, so I'm now using a while...end while. I need to learn to read the
RCX SDK parameter table a bit better.
So much to learn, so much fun.
Cheers ;-)
Mike



Message has 1 Reply:
  Re: vb variable size
 
Don't feel bad...I made the same mistake myself. Dave Baum (...) (25 years ago, 13-Dec-99, to lugnet.robotics)

Message is in Reply To:
  Re: vb variable size
 
(...) The variables are 16 bit signed (-32768 to 32767), but the loop counter is only an 8 bit unsigned (0 to 255). When you set the loop counter from a variable it ignores the high bits and truncates. Dave Baum (25 years ago, 12-Dec-99, to lugnet.robotics)

4 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
    
Active threads in Robotics

 
Contact Recovery Nerd for Speedy USDT / BTC Recovery
22 hours ago
Custom Search

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