# Syntax Error on declaration

**URL:** <https://tech-community.robotics.abb.com/t/syntax-error-on-declaration/9130>\
**Category:** RAPID Programming\
**Created:** [October 2, 2019, 9:02am UTC](https://tech-community.robotics.abb.com/t/syntax-error-on-declaration/9130 "2019-10-02T09:02:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![garlo82](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@garlo82](https://tech-community.robotics.abb.com/u/garlo82)\
**Post date:** [October 2, 2019, 9:02am UTC](https://tech-community.robotics.abb.com/t/syntax-error-on-declaration/9130/1 "2019-10-02T09:02:34Z")

</div>

Hi i have some code (Below) in a semistatic task and i have notice that it has syntax errors on the declarations despite the check function showing none and the program running fine for years. could someone help explain why this is possible.

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/9/93e9e8080de6a8b62c442d287a98fdc3c7d5a306.png)

Many thanks

lee

---

<div class="post-metadata">

**Author:** ![DavidLanham](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/davidlanham/32/219_2.png) [@DavidLanham](https://tech-community.robotics.abb.com/u/DavidLanham)\
**Post date:** [October 2, 2019, 10:46pm UTC](https://tech-community.robotics.abb.com/t/syntax-error-on-declaration/9130/2 "2019-10-02T22:46:29Z")

</div>

Reason for Syntax error underline:

1. Syntax error above these declarations
2. These declarations are in wrong place in module
3. Could be BaseWare related as well. Ver 6.09 does not have a problem with what you have declared there

Hope this helps…if not post your module and I will look at it.

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [October 3, 2019, 1:03pm UTC](https://tech-community.robotics.abb.com/t/syntax-error-on-declaration/9130/3 "2019-10-03T13:03:26Z")

</div>

Try declaring them as just VAR, drop the TASK.
