To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / 522
  Re: VB 6 subprocedure stumper
 
Hi Kathy, My first question would be "What are the values of CHECK_LEFT and CHECK_RIGHT?" If they're the same, that would produce the behavior you're getting. I know I often make a mistake like that when I copy and paste a line of code. You also may (...) (24 years ago, 27-Mar-00, to lugnet.robotics.rcx)
 
  Re: VB 6 subprocedure stumper
 
David: Thanks for the tips - I really appreciate any pointers/help I can get. Actually, if I abandon the idea of subprocedures and move the code within my main task, it runs just fine. However, the whole idea of this "lesson" is to use subprocedures (...) (24 years ago, 27-Mar-00, to lugnet.robotics.rcx)
 
  Re: VB 6 subprocedure stumper
 
Hi Kathy, No, Sub 0 shouldn't interfere with Task 0. If you want, you could e-mail me the code and I'll take a look at it. David Leeper (...) here: (...) program (...) (24 years ago, 27-Mar-00, to lugnet.robotics.rcx)
 
  Re: VB 6 subprocedure stumper
 
If your subs won't be called more than once, you can create a VB procedure with the code and "call" it where you want the code. It will work like a C macro, inserting copies of that code whenever called and keeps your code organized. I know it is (...) (24 years ago, 14-Apr-00, to lugnet.robotics.rcx)

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