Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return Value of a Function

Status
Not open for further replies.

Quasibobo

Programmer
Oct 11, 2001
168
NL
Hi there,

I've got a pretty easy problem, I guess. I use a wysiwyg-editor which enables my customer to insert hyperlink in to text. The editor however creates absolute path's which I want to alter to relative path's. No sweat so far. I wrote a function:

Function absolute_to_relative(str)
str = Replace(str, " "../")
End Function

And I call this function like:
Description = absolute_to_relative(Request.Form(Description))

Problem is that is keeps on returning empty fields. What is wrong? I know I plobably have to do something like Return(str) or Response.Write(str) but neither of both does the trick.

Suggestions?

Don't eat yellow snow!
 
Function absolute_to_relative(str)
str = Replace(str, " "../")
absolute_to_relative = str
End Function

give it a whirl

___________________________________________________________________

The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
 
Thanks

That worked! (Of course, you think!)

Don't eat yellow snow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top