Yes that did the trick as I copied it from below and pasted it into my macro.

 

I MUST remember to count and make sure the number of ( brackets

equals the number of ) brackets.

 

Thanks

 

-----Original Message-----
From: Benz H. Babecki [mailto:[EMAIL PROTECTED]
Sent:
Thursday, March 04, 2004 8:54 AM
To: Michael Senack
Subject: RE: [mfg-smartcam] Variable help

 

Michael, You have too many parenthesis at the end...look at your last line. You have 1 less in the front but 2 less at the end of the statement:

#LY1=ABS(((.189+.185)/2)+((.110+.106)/2)))<one too many here...  should be #LY1=ABS(((.189+.185)/2)+((.110+.106)/2))

 

Benz

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Michael Senack
Sent:
Thursday, March 04, 2004 8: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