Normal Topic "This program has generated too many errors" (Read 770 times)
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
"This program has generated too many errors"
Mar 15th, 2006 at 2:51pm
Print Post Print Post  
Quote:
"This program has generated too many errors".


Not something you want to see at the bottom of your "Test Program" output.   Undecided

Is there a way to print out the error report?
  

**
Captain Infinity
Back to top
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: "This program has generated too many errors"
Reply #1 - Mar 15th, 2006 at 2:56pm
Print Post Print Post  
Don't print out an error report. Errors cascade. This means that the first error can cause more "errors" to appear.

When working on your compile errors, fix the first one and test again. If you still have errors, fix the first one and test again. And so on. Fixing the first few errors is likely to clear the rest of them.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: "This program has generated too many errors"
Reply #2 - Mar 15th, 2006 at 3:06pm
Print Post Print Post  
OK, thank you.  I see that many of them are because Q&A can use nested Xlookups but I need to put each one on it's own line in Sesame.  Not a problem, just a lot of work.  Oh well, job security.

Here's one that has me stumped, however.  This works in Q&A:
Code
Select All
>#2175:IF #2005="" THEN {IF NOT #2050="" THEN {{if not #2076="0" then
#2005=@STR(#2076)+" "+@STR(#2025)+" "+@STR(#2050)
else #2005=@STR(#2025)+"
"+@STR(#2050)};if not #2075="" then #2005=@str(#2005)+"  "+"SN"+@str(#2075)};if #2005="." then #2005="";
if (#2100+#2101+#2125+#2126+#2150+#2151+#2175)>"0" then goto #2176}
ELSE GOTO #2200 



After translation (and a bit of cleanup) it looks like this:
Code
Select All
IF F0008=""
THEN
	{
	IF NOT MODEL1="" THEN
		{
			{
			IF NOT NO_OF_PIECES1="0"
			THEN F0008=@STR(NO_OF_PIECES1)+" "+@STR(MAKE1)+"  "+@STR(MODEL1)
			ELSE F0008=@STR(MAKE1)+" "+@STR(MODEL1)
			}
		IF NOT SERIAL1=""
		THEN F0008=@STR(F0008)+"  "+"SN "+@STR(SERIAL1)
		}
	IF F0008="."
	THEN F0008=""

	IF (LENGTH_FEET1+LENGTH_INCHES1+WIDTH_FEET1+WIDTH_INCHES1+HEIGHT_FEET1+HEIGHT_INCHES1+WEIGHT1)>"0"
	THEN GOTO F0123
	}

ELSE GOTO ONLY_MACHINE 



The program editor is choking on line 6, the third nested { (the editor says it's expecting } ).

Please don't anyone spend any extra time looking at this, as I'll probably re-write it all anyway using variables.  But if anyone can quickly spot what's wrong with my nested brackets I'd appreciate the information.
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: "This program has generated too many errors"
Reply #3 - Mar 15th, 2006 at 3:09pm
Print Post Print Post  
You have two { right next to each other. Line 5 and line 6. A { must follow a coditional or loop, it can not just be by itself.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Infinity
Senior Member
Members
*****
Offline


Diagonally parked in a
parallel dimension

Posts: 1290
Location: Massachusetts
Joined: May 27th, 2005
Re: "This program has generated too many errors"
Reply #4 - Mar 15th, 2006 at 3:41pm
Print Post Print Post  
Thank you.  I've re-written it to this:
Code
Select All
IF F0008=""
THEN
	{
	IF NOT MODEL1="" THEN
		{
		IF NOT NO_OF_PIECES1="0"
		THEN F0008=@STR(NO_OF_PIECES1)+" "+@STR(MAKE1)+"  "+@STR(MODEL1)
		ELSE F0008=@STR(MAKE1)+" "+@STR(MODEL1)

		IF NOT SERIAL1=""
		THEN F0008=@STR(F0008)+"  "+"SN "+@STR(SERIAL1)
		}
	IF F0008="."
	THEN F0008=""

	IF (LENGTH_FEET1+LENGTH_INCHES1+WIDTH_FEET1+WIDTH_INCHES1+HEIGHT_FEET1+HEIGHT_INCHES1+WEIGHT1)>"0"
	THEN GOTO F0123
	}

ELSE GOTO ONLY_MACHINE
 


and the Program Editor is happy, but I won't know if it works until all the programming errors are gone.

One other question about the Program Editor...at the end of each top error line is a number in parenthesis, like this:
Quote:
Error while parsing module "FORKLIFT_CHARGE_1" (0)
  I've seen 0 and 1.  What do these numbers mean?
  

**
Captain Infinity
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: "This program has generated too many errors"
Reply #5 - Mar 15th, 2006 at 4:19pm
Print Post Print Post  
0 is Element Entry
1 is Element Exit
2 is Form Change
3 is Element Change
4 is Form Entry
5 is Form Exit
6 is Element Immediate Change

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged