Highlighted

cfargument in script-only components

New Here ,
Oct 14, 2014

Copy link to clipboard

Copied

When writing a tag-based function, I can say <cfargument name="componentArray" type="component[]" required="true">.

How do I do the same thing in script?

public void function someFunction(required component[] componentArray) {} gives me a syntax error in CFBuilder, so I expect that won't work.

Views

83

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

cfargument in script-only components

New Here ,
Oct 14, 2014

Copy link to clipboard

Copied

When writing a tag-based function, I can say <cfargument name="componentArray" type="component[]" required="true">.

How do I do the same thing in script?

public void function someFunction(required component[] componentArray) {} gives me a syntax error in CFBuilder, so I expect that won't work.

Views

84

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 14, 2014 0

Have something to add?

Join the conversation