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 / 8972
  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)
 
  Re: vb variable size
 
Hi (...) 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 (25 years ago, 12-Dec-99, to lugnet.robotics)
 
  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)

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