# commenting global vars and form vars

**URL:** <https://forum.servoy.com/t/commenting-global-vars-and-form-vars/15233>\
**Category:** Classic Servoy\
**Created:** [December 23, 2011, 7:24pm UTC](https://forum.servoy.com/t/commenting-global-vars-and-form-vars/15233 "2011-12-23T19:24:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amcgilly](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@amcgilly](https://forum.servoy.com/u/amcgilly)\
**Post date:** [December 23, 2011, 7:24pm UTC](https://forum.servoy.com/t/commenting-global-vars-and-form-vars/15233/1 "2011-12-23T19:24:41Z")

</div>

I like to put lots of comments in my code, and that includes comments about my global vars and form vars. But I have found that putting a comment near a global var or form var declaration can be dangerous - Servoy becomes confused and it can invalidate the var declaration. Has anyone else run into this, and has anyone found a safe way to put a comment near a global or form var?

I’m using Servoy v5.2.11

Thanks.

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [December 25, 2011, 7:57pm UTC](https://forum.servoy.com/t/commenting-global-vars-and-form-vars/15233/2 "2011-12-25T19:57:07Z")

</div>

Adding a comment to the JsDoc header shouldn’t cause any problem if I’m correct.
