# function keyword within quotes

**URL:** <https://forum.servoy.com/t/function-keyword-within-quotes/5924>\
**Category:** Classic Servoy\
**Created:** [May 16, 2006, 3:57pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924 "2006-05-16T15:57:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [May 16, 2006, 3:57pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924/1 "2006-05-16T15:57:34Z")

</div>

Servoy editor pops up and error for the following expression

```auto
var a = new Object();
a.method1 = method1;

if (typeof(a.method1) == "function") {
   ...
   ..
   .
}

```

I thought only the keyword function is not allowed and not the string “function”

Also the following gives error too (2nd line)

```auto
var a = new Object();

a.new = "yyy";

```

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [May 16, 2006, 7:49pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924/2 "2006-05-16T19:49:14Z")

</div>

I thought that was fixed a long time ago…what version are you using?

---

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [May 17, 2006, 1:36pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924/3 "2006-05-17T13:36:35Z")

</div>

i am using Servoy version 3.0b2

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [May 17, 2006, 1:42pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924/4 "2006-05-17T13:42:51Z")

</div>

Never been fixed, pending a major update of the Servoy editor, as far as I know.

you can use “func”+“tion”

Paul

---

<div class="post-metadata">

**Author:** ![faheemhameed](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@faheemhameed](https://forum.servoy.com/u/faheemhameed)\
**Post date:** [May 17, 2006, 4:09pm UTC](https://forum.servoy.com/t/function-keyword-within-quotes/5924/5 "2006-05-17T16:09:54Z")

</div>

yeah!

I got the work around already.

Thanks for your suggestion.
