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 / 2712
2711  |  2713
Subject: 
Re: ScriptEd - Question
Newsgroups: 
lugnet.robotics.rcx
Date: 
Thu, 4 Aug 2005 20:45:49 GMT
Viewed: 
3845 times
  
On Thu, August 4, 2005 3:34 pm, ludo soete wrote:

The error apears in following line:
const delay1 = 1000 // minimum stop time in station (10 seconds)
The word 'const' is highlighted in blue


Check the line before that.  Your code says:
//
direction_ // direction of monorail
const delay1=1500 // minimum stop time in station (10 seconds)
const delay2=3000 // maximum stop time in station (30 seconds)
//

I'm not sure exactly what you're trying to do with "direction", but I think you want
a line like:
---
var TrainDirection
---

Don't use direction, because it's a reserved word.  So is "dir".

Your code has several places where you use "direction" and/or "direction_".  The
second may work, but I wouldn't chance wasting more time.

Steve



Message has 1 Reply:
  Re: ScriptEd - Question
 
(...) The MindScript compiler is very buggy when it comes to reporting the actual location of a compiler error, unfortunately. The wrapper I wrote that is used within BricxCC tries to account for the problems it has and adjust the error information (...) (19 years ago, 8-Aug-05, to lugnet.robotics.rcx)

Message is in Reply To:
  Re: ScriptEd - Question
 
(...) Hi Steve, I see the message apearing in the status bar, but it's an error! Error is : Error (0xe0050801) from VPBrick compiler The error apears in following line: const delay1 = 1000 // minimum stop time in station (10 seconds) The word (...) (19 years ago, 4-Aug-05, to lugnet.robotics.rcx)

5 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
    

Custom Search

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