NXC: Tasks and global variables

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
roscohead
Posts: 18
Joined: 29 Sep 2010, 03:09

Re: NXC: Tasks and global variables

Post by roscohead »

Interestingly, if I change the code back to

Code: Select all

  NumOut(80, line, ArrayLen(vx.a1));
the NBC comes out as

Code: Select all

	arrsize __D0print, __print_7qG2_vx_7qG2_000.a1
...
	numtostr __TextOutArgs.Text, __DU0print
A little different, but same result in the end.

ROSCO
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: NXC: Tasks and global variables

Post by afanofosc »

Rosco,

You are definitely not using the same version of the compiler that I am using. Can you download and use the 2011-10-24 test release? Please make sure that you replace/delete older versions of the compiler/IDE.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
roscohead
Posts: 18
Joined: 29 Sep 2010, 03:09

Re: NXC: Tasks and global variables

Post by roscohead »

Doh, yes, you are correct, at some stage it appears I installed a 2nd copy, and the copy I was running was not the copy I've been updating (thanks, Bill, for shortcuts...). Second copy now deleted, happy to report I now get the correct array length. And the program I was initially working on is now much neater and works flawlessly (well that part of it anyway), thanks for pointing out the obvious!

ROSCO
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 8 guests