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!

function directory

Status
Not open for further replies.

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
 
This should work. I don't think you would need a parm.

Public Function localhost As String

localhost = "C:\phpdev\
End Function

CharlesCook.com
ADP - PeopleSoft - SAP
ReportSmith - Crystal Reports - SQR - Query - Access
Reporting - Interfaces - Data Mining
 
Somewhat ?useless?. It is more like a declaration or constant than a function. Just pulce the declaration in/as a global.




MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top