Mar 7, 2005 #1 patweb Programmer Apr 17, 2003 174 BE Code: Public Function localhost(url As String) As Variant url = "C:\phpdev\[URL unfurl="true"]www\web\mb_frm\"[/URL] End Function I need to reuse in several places a reference to a local directory, how to to this with a function (this is not working). pat
Code: Public Function localhost(url As String) As Variant url = "C:\phpdev\[URL unfurl="true"]www\web\mb_frm\"[/URL] End Function I need to reuse in several places a reference to a local directory, how to to this with a function (this is not working). pat
Mar 7, 2005 #2 CharlesCook Programmer May 13, 2002 424 US This should work. I don't think you would need a parm. Public Function localhost As String localhost = "C:\phpdev\http://www\web\mb_frm\" End Function CharlesCook.com ADP - PeopleSoft - SAP ReportSmith - Crystal Reports - SQR - Query - Access Reporting - Interfaces - Data Mining Upvote 0 Downvote
This should work. I don't think you would need a parm. Public Function localhost As String localhost = "C:\phpdev\http://www\web\mb_frm\" End Function CharlesCook.com ADP - PeopleSoft - SAP ReportSmith - Crystal Reports - SQR - Query - Access Reporting - Interfaces - Data Mining
Mar 7, 2005 #3 MichaelRed Programmer Dec 22, 1999 8,410 US Somewhat ?useless?. It is more like a declaration or constant than a function. Just pulce the declaration in/as a global. MichaelRed Upvote 0 Downvote
Somewhat ?useless?. It is more like a declaration or constant than a function. Just pulce the declaration in/as a global. MichaelRed