Mike,
 
You have mismatched parentheses in the first two. A simple way to check is to simply count the number of "left-hand" and compare it to the number of "right-hand" parentheses. The third definition has 4 of each and so is balanced.
 
Chris
-----Original Message-----
From: Michael Senack [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 7:30 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Variable help

Hi all,

 

In my macro I'm getting an "2601: Macro error in ..... cannot assign #LY1" error

 

if I have my variable #LY1 (Line Y-coordinate One)  defined as...

 

#LY1=ABS(((.189+.185)/2)+((.110+.106)/2))) 

 

OR as...

 

#LY1=ABS(((.189+.185)/2)+ABS((.110+.106)/2))) 

 

BUT if I define #LY1 as...

 

#LY1=ABS((.189+.185)/2)+ABS((.110+.106)/2)

 

it works!

 

Is this because SC cannot nest more then two sets of brackets?

 

Or is there a better way to define #LY1?

 

Regards,

Michael Senack

 

 

Reply via email to