Skip to main content
Participant
December 10, 2012
Answered

how do you use the replace function?

  • December 10, 2012
  • 2 replies
  • 542 views

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 has been closed for replies.
Correct answer WolfShade

#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.

WolfShade
WolfShadeCorrect answer
Legend
December 10, 2012

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