Hi I have a password which contains #. ( abcd#456)...
# cfml-beginners
a
Hi I have a password which contains #. ( abcd#456) I need to pass it in the argStruct when calling the createObject function. But I get syntax error. What to do ?
Copy code
<cfset myObj = createObject('webservice', 'urltowsdl ', {authType = 'basic', username='abc@abc', password='abcd#456'})>
m
double up your # ##
Copy code
<cfset myObj = createObject('webservice', 'urltowsdl ', {authType = 'basic', username='abc@abc', password='abcd##456'})>
a
Thank you 🙂
a
@Mark Takata (Adobe) / @saghosh the one thing you don't mention on the relevant docs page - https://helpx.adobe.com/coldfusion/developing-applications/the-cfml-programming-language/using-expressions-and-number-signs/using-number-signs.html - is how to escape them. Might wanna add that.
🙏 1