Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Syntax checking error


ImALumberjack Jun 17, 2011 03:51 PM

Happy Friday everybody!

I've discovered a feature in CRBasic Editor - if you initialise two arrays, it reports a duplicate variable.

For example,

Public arrayTestA(3) = {0,0,0}
Public arrayTestB(3) = {0,0,0}

results in the message

"You have declared the following duplicate variable name: }."


Yet it still compiles and runs ok.

Is there a preferred style for initialising an array with values?


IslandMan Jun 19, 2011 10:26 AM

I ran the exact same test in a CR800 program I have and it compiled fine.
Do you have the latest datalogger OS files installed on your PC? The OS file also contains updates for the CRBasic files on your PC as well as the new OS for the datalogger. Try updating the OS files for the logger you are using and see if you get the same error. You don't have to update the logger OS if you don't want to but I think it's a good idea to keep current.

* Last updated by: IslandMan on 6/19/2011 @ 4:26 AM *


Sam Jun 20, 2011 02:43 AM

That is a known bug, fixed with the CRBasic Editor shipped with LN 4.1. Update your LN installation to LN 4.1.

From Support -> Downloads -> LoggerNet Patch 4.1 -> Revision History:

Revision: 4.1
December 10, 2010
Item 90
CRBasic Editor Bug Fix - Fixed a bug so that multiple Public statements used to initialize arrays do not give a duplicate variable name error for "}".

Log in or register to post/reply in the forum.