To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1877
1876  |  1878
Subject: 
Re: Watching Arrays
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 17 Aug 2006 21:15:33 GMT
Viewed: 
10603 times
  
In lugnet.robotics.rcx.nqc, John Hansen wrote:
In lugnet.robotics.rcx.nqc, Rob Antonishen wrote:
How can I view the contents of the array at run time?  "Watch the Brick"
shows me Var0 to Var 31 but these don't seem to relate/contain the
values I initially entered into the array.


The way to do this is to find out the variable number assigned by NQC to your
array variable and then watch that variable number plus all the ones up through
the size of your array.  You can find out the variable number by viewing the
code listing (F12) after you compile your program in BricxCC.  At the top of the
listing will be a section which maps variable names to their assigned numeric
value.


Thanks John!

I never knew about that F12 thing :)

-Rob A>



Message is in Reply To:
  Re: Watching Arrays
 
(...) The way to do this is to find out the variable number assigned by NQC to your array variable and then watch that variable number plus all the ones up through the size of your array. You can find out the variable number by viewing the code (...) (18 years ago, 17-Aug-06, to lugnet.robotics.rcx.nqc)

3 Messages in This Thread:

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

Custom Search

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