E-Prime 2 conversion of .es files

1,077 views
Skip to first unread message

Bachman, Peter

unread,
Feb 4, 2009, 12:32:04 PM2/4/09
to E-Prime
Hi, everyone,

I have a question regarding an error with E-Prime 2. I tried to
convert an .es file created in E-Prime 1 into an E-Prime 2 compatible
format. It seemed to work - the process created an .es2 file that
opened in E-Studio - but the script would not compile. I received the
following error ...

Encountered: constant
Expecting: identifier

Associated with setting "color as string"

I'm wondering if this is an error that comes up with E-Prime 2
sometimes, and is perhaps not specific to my script. And also, if
anyone has successfully fixed the problem in their scripts.

Thanks!

David McFarlane

unread,
Feb 5, 2009, 4:17:37 PM2/5/09
to e-p...@googlegroups.com

I had to try this out myself, and indeed, this works with EP1 but not
with EP2. Clearly, although not yet documented (the EP2
documentation lags behind the product), in EP2 "color" is now a
restricted keyword. If you want to test this further yourself, just
put any other known keyword (e.g., "string") in place of "color", and
you will get practically the same error.

The solution is simply to change the name of your variable from "color".

--David McFarlane, Professional Faultfinder

Matt Lenhart

unread,
Feb 17, 2009, 10:02:34 AM2/17/09
to E-Prime
Hello,

Yes, a Color object has been added to the E-Basic language for E-Prime
2.0. Thus, you will be unable to use "Color" for object or variable
names (i.e., in the same way that you cannot use TextDisplay, Dim,
etc). In future builds, Color will turn blue when it is typed into an
InLine or the User script. A KB was created when the Color object was
added. You can take a look at http://www.pstnet.com/e-prime/support/kb.asp?TopicID=2667
for more information on the Colors object and its syntax.


- Matt
http://www.pstnet.com
Reply all
Reply to author
Forward
0 new messages