Skip to main content
Participant
December 10, 2012
Answered

how do you use the replace function?

Issue:  The names comes across like this: Hausmann, Alan *
I want to strip an asterisk out of the name. I was using the Replace function.
But I do not understand what the error means (Error:  Invalid construct: Either argument or name is missing.)

This is the code I am using.
<cfoutput>#Replace(form.name,*,"")#</cfoutput>


Thanks,
Al Hausmann

This topic is closed to new replies. Start a new post to keep the conversation going.
WolfShade
WolfShadeCorrect answer
Legend
December 10, 2012

#Replace(form.name,"*","","all")#

2 replies

Inspiring
December 10, 2012

WolfShade gave you the correct syntax.  Your specific error was that you did not quote the asterisk.

Translate
WolfShade
WolfShadeCorrect answer
Legend
December 10, 2012

#Replace(form.name,"*","","all")#

Translate