TIP: Click on subject to list as thread! ANSI
echo: semware
to: All
from: Thomas Martin
date: 2003-02-07 13:15:46
subject: [TSEPro] Re: Compiler Error

From: Thomas Martin 
@Date: Thu, 06 Feb 2003 21:45:46 -0500
@Sender: semware-owner{at}sawasdi.apana.org.au



That was it!  Thank you VERY much.

At first I wondered why the compile would report the error on a different 
line, but I do understand that "white space" is ignored.  So, I guess I 
effectively had

         IF {assignment} AddLine()

and the problem was found at the AddLine.  I think I understand it!  (AMAZING!)

The environment I use the most doesn't do assignments that way, and the 
single "=" is the equivalence operator. Even though I used it properly 
earlier in the macro, I'm not sure I would have ever noticed it here.  I 
probably won't forget that one again.

Good day.  Thanks again.

Tom Martin

At 2/6/03 04:34 PM -0700, you wrote:

>Thomas Martin  wrote:
>
> > Well, I don't know how many years I've been a licensed user of=20 TSEPro.
> > It's a wonderful editor which I use A LOT, but I've only probably= =20
> > ever used about 3% of its capabilities.  Anyway, I'm just writing my
> > VERY=20 FIRST macro today!!
> >
> > It's been going quite well, but I've run into something that I don't=20
> > understand.
> >
> > I'm working in TSEPro 3.0c
> >
> > The code in question is:
> >
> > Line 94    if logAddNewLine =3D 1
> > Line 95      // AddLine(strMMDD + " " + strToTime +
"-???? ????")
> > Line 96      AddLine()
> > Line 97    endif
> >
> > I really want to use Line 95, but when the error occurred, I decided to
> > try= =20 a simpler version.  However, I still have the error.
> >
> > So, what am I missing?  Why would "AddLine()" cause a problem?
>
>I am getting odd characters (=20, =3D) in your message. But I think I know
>what the trouble is.
>
>SAL is confused because you are performing an assignment (=) on line 94,
>not a comparison (==).
>
>You need to use:
>
>if logAddNewLine == 1
>--
>TSEPro mailing list

--
TSEPro mailing list



---
[sawasdi.apana.org.au] (3:800/846.13)
* Origin: apana>>>>>fidonet
SEEN-BY: 633/267 270
@PATH: 800/846 1 640/954 774/605 123/500 106/1 379/1 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.