The Dollar Sign Problem
The Dollar Sign Problem
It is impossible to add a simple Dollar sign to a string. The following expression will result in an unidentifiable error:
text = "$" + someOtherText;
This is strange because just initialising a string variable with a Dollar sign is no problem. The following statement is just fine:
text = "$234.00";
But you can’t write:
text = "$" + "234.00"; // error!
THE Workaround: instead of “$” use the html escape code “$”. The following expression works fine and produces the same outcome:
text = "$" + "234.00"; // will display as $234.00 on a webpage
BUT I still would like ZOHO to fix this. These kinds of errors are crazy! And I spent about an hour finding this out because the error messages one gets are not really very helpful!
----------------------------------------------------------------------
Carsten Eckelmann
Director, TripleAcs Expert Cloud Solutions
http://tripleacs.com