hi

i have a function

function change(txt)
change=replace(txt,"-","~")
end function

this works fine when i place it inline in a ASP page but when i
<!-- #include -->
a file with it in - it gives me a type mismatch error.

any ideas?

D

Re: function works inline but not when placed in include file by Roland

Roland
Fri Jun 24 10:11:33 CDT 2005

"diablo" wrote in message news:zdQue.1474$z61.462@newsfe2-gui.ntli.net...
: i have a function
:
: function change(txt)
: change=replace(txt,"-","~")
: end function
:
: this works fine when i place it inline in a ASP page but when i
: <!-- #include -->
: a file with it in - it gives me a type mismatch error.

show the include and where you put it in the code.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp