Skip to main content
Participant
July 29, 2010
Question

i need solution for this?

  • July 29, 2010
  • 3 replies
  • 754 views

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?

This topic has been closed for replies.

3 replies

Charlie Arehart
Community Expert
Community Expert
July 30, 2010

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

/Charlie (troubleshooter, carehart. org)
Participant
July 29, 2010

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?

ilssac
Inspiring
July 29, 2010

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"]

Inspiring
July 29, 2010

Nope, it's not possible.

Why do you need the argument to have that specific name?

--

Adam