svtchris Posted December 13, 2006 Share Posted December 13, 2006 Rather than using a local or network connected database for a set of options in a drop down I would rather use a list of options on a webserver.The list could be in an XML file, DB, whatever.Anyone have any ideas or sample code.Thanks, Link to comment Share on other sites More sharing options...
pcuser_tom Posted February 18, 2007 Share Posted February 18, 2007 (edited) You can download any file using this simple code:Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As LongPrivate Sub Command1_Click()URLDownloadToFile 0, "http://www.yoursite.com/yourfile.txt", App.Path & "\" & "yourfile.txt", 0, 0End SubThe first param is the URL and file to download and the second param is where you want to save it to. Edited February 18, 2007 by pcuser_tom Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now