Normal Topic [Solved] Syntax error (Read 896 times)
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
[Solved] Syntax error
Sep 16th, 2007 at 4:09pm
Print Post Print Post  
Error while parsing module "Print form (0)":
     Symbol expected [}], symbol found [Identifier].
     Line 298, position 25 [Identifier vPrice]

Following is the line of code with a v under the l to illustrate where the carrot was placed.
                       vPrice = @FormFieldValue("Line Items", "Amt", vRecord)
                                             v
                    var vPrice as string is how it is declared
The following works just fine
     PrintString(@FormFieldValue("Line Items", "Amt", vRecord), 690, vPageY, 300, "Arial", 14, 0)

If the above has ToMoney added to the above line as used in Seasons I get an error.
What is missing?
Any assistance will be greatly appreciated.

Harley


                                         
« Last Edit: Sep 17th, 2007 at 3:18pm by Hammer »  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @FormFieldValue problem
Reply #1 - Sep 16th, 2007 at 4:19pm
Print Post Print Post  
Harley,

You have an open curly brace ( { ) somewhere without a matching close curly brace ( } ).
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: @FormFieldValue problem
Reply #2 - Sep 16th, 2007 at 4:51pm
Print Post Print Post  
I thought I had checked them all and am printing OK with that one remarked out but I'll look some more.

Thanks
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: @FormFieldValue problem
Reply #3 - Sep 17th, 2007 at 11:14am
Print Post Print Post  
pineberry wrote on Sep 16th, 2007 at 4:51pm:
I thought I had checked them all and am printing OK with that one remarked out but I'll look some more.


Compile errors like the one you show are always syntax errors. There is nothing else they can be. Look for mismatched curly braces, parentheses, quote marks... Stuff like that.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
pineberry
Full Member
***
Offline


No personal text

Posts: 115
Location: Strawberry, AZ  USA
Joined: Nov 30th, 2002
Re: Syntax error
Reply #4 - Sep 17th, 2007 at 3:08pm
Print Post Print Post  
I had matched all my curly braces using various colored lines and after several iterations discovered one was the wrong direction.
I do indent them so it is easier to match but you have to look to see if they point the right direction. Problem solved.
  
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: [Solved] Syntax error
Reply #5 - Sep 17th, 2007 at 4:39pm
Print Post Print Post  
Hello Harley,

A little tip that may help you in the future in case you run into this problem again.

What you can do is run two Search and Replace Alls in that event. One to replace the Open curly braces with the words OPEN CURLY and the other one to replace the Close curly braces with the words CLOSE CURLY.

Then you can read the code and not have to look closely to see which way the Curly brace is pointing. Once you find it just run two Search and Replace Alls that do the opposite and turn the words back into the braces.

Another bonus is that when you run the Replace All's, Sesame will tell you how many it replaced so you have a better idea what you are missing.

-Ray
  

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


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: [Solved] Syntax error
Reply #6 - Sep 17th, 2007 at 5:13pm
Print Post Print Post  
Great Tip Ray. Thanks  Smiley



  

Team – Together Everyone Achieves More
Back to top
 
IP Logged