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:
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
|
|
|
|