Copy link to clipboard
Copied
hi friends,
i am doing create a cfc. i have a doubt. i want to pass data like this
<cfargument name="name.num" >
is this possible in cfc? i gave this format.but i got error illegal characters
give solution?
Copy link to clipboard
Copied
Nope, it's not possible.
Why do you need the argument to have that specific name?
--
Adam
Copy link to clipboard
Copied
i am converting a webpage using flex and coldfusion.they passed like this
document_long_name_no_ext.last
document_long_name
how can pass this argument in cfc
give solution?
Copy link to clipboard
Copied
How they pass the variable does not matter, you can name it anything you want in your CFC.
<cfargument name="myLegalName"....>
And what ever gets passed to that function will be in the variable arguments.myLegalName.
If you ever do need to access a variable with an illegal name, you can use this form.
scope["a.variable.with.illegal.characters"]
I.E.
variables["name.num"]
Copy link to clipboard
Copied
This is a question better suited to the appropriate CFML forum (Getting Started with ColdFusion, for instance).
You're asking in the ColdFusion Builder forum, which is intended for discussion of the IDE itself, not the CFML language.
/charlie