You need to sign in to do that
Don't have an account?
Brabas
equivalent char(Ascii) function?
Hello,
I was wondering if there is any equivalent string function that can used similar to the char(Ascii) function which exists in java? ejp. char(39) = ' in Ascii
Component.Apex.inputText it_dEPolicy=new Component.Apex.inputText ();
it_dEPolicy.onmouseover='initialiseCalendar(this,'+char(39)+'{!$Component.dEPolicy}'+char(39)+')';
Thanks!
You have to escape literal apostrophes it by preceding it with a backslash, as follows:
All Answers
You can use this utility function using the newly added string functions in Winter 13 or so. Use it like this:
If using it from a utility class, make sure you call it using the class' name.
the problem is that I find ways to contain the tilde in a variable, the function char (39) returns the Java tilde (') in apex not find a way to contain the tilde, without closing the expression.
You have to escape literal apostrophes it by preceding it with a backslash, as follows:
Thank you for you help, I changed my controller to be like this: