Date:  05/02/2002 07:24:50 AM Msg ID:  000602
From:  John Potter Thread:  000602
Subject:  calling function in different directory
Hello,
 
Calling a function is simple enough:
 
<%=htmlHeader()%>
 
Works like a champ. htmlHeader.prg is in the current directory.
 
Not so simple though when the function is in a different directory than the calling program. Say, the relative path to the function I want to call is '.\fooBar\'
 
 
 
<%=.\fooBar\htmlHeader()%>
 
I get the error message "Function name is missing )."
 
To make things more interesting, the relative path has to be contained in a variable. Thus, what I really want to do is something like this:
 
<%
m.path=".\fooBar\"
%>
 
<%=m.pathhtmlHeader()%>
 
or
 
<%=(m.path+"htmlHeader()")%>
 
Nothing seems to work.
 
I hope you can tell me what will work.
 
Thanks in advance.
 
John Potter