On Thu, Mar 11, 2010 at 10:01 AM, smisonl...@googlemail.com <
smisonl...@googlemail.com> wrote:
> Their is a problem when i set the value to "0"
>
ID = 0;
> textfield.setValue(ID);
>
>
> throws an error and stop the script
>
>
Did you check API documentation? setValue in this case expects String. Basic
principle in APIs is that if you misuse them the result is undefined, i.e.
anything can happen.
> ID = 0;
> textfield.setValue(ID+"");
>
> works?!? Why?
>
>
This is a feature of JavaScript. Interpreter is implicitly converting ID to
string to make concatenation possible. As a result setValue is called with
String parameter.
-ilkka
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel