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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP with Foxpro 1

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
There was a fine example of an FTP program, written in Foxpro somewhere on here, many years ago. I have been searching for it but it is very well hidden, does anyone know where it is.
I have been using the upload routines from it for years but now I need the download part.

Keith
 
Keith,

There is information about calling FTP functions from VFP here:
Youi should also take a look at Rick Strahl's site ( He's sure to have something of interest.

Finally, take a look at the Internet Transfer Control that comes with VFP. It's an ActiveX control that supports all the common FTP functions. I've used it myself several times.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips, training, consultancy
 
If you had done a Search of this forum area for: FTP
you would have found MANY previous postings.

One of those of interest might have been the one that pointed you to the FAQ of this forum area:
How do I transfer files using FTP?
faq184-3234


A surf through the FAQ's of this forum area themselves would have enabled you to find that as well.

Good Luck,
JRB-Bldr

 
If you look for any good FTP application, I suggest Cyberduck.

If you want to do FTP from within VFP you have very many possibilities:
1. DOS FTP command
2. Wininet, eg as described at the already mentioned news2news 3. libcurl based VFPConnectoin 4. another libcurl binding from Carlos Alloatti 5. the already mentioned Microsoft Internet Transfer Control 6.0 (ActiveX)
6. the already mentioned west-wind Toolset, there should be a wwFTP class.

Bye, Olaf.
 
Note that West-Wind's wwFTP is just a wrapper around WinINET. Many 3rd party offerings are as well.

It doesn't make any functional difference, but if you're a real cheapskate there's no reason to spend money on something you can do yourself as shown at news2news.

Then, again, if someone else has already built that wheel why not use it? ;-)
 
I have been having some issues with FTP clients of late and have been having a think
about what I actually need from an FTP transfer program, to enable me to work more efficiently.
I thought it may be a good idea ot develop an FTP program which met my needs rather then a
stock program, written by a designer who knew nothing about the way I work.
During the development process, I find myself leaping around within an FTP program to
upload the latest updated file.

For example, the websites I develop are usually driven from a Perl script (file1) which displays
on a web page via several Perl templates (file2, file 3, file4 etc.).The formatting is done within
a .css file (file5) and control variables are taken from an external data file (file6) and certain
parameters are read from other files (file7, file8 etc.)

These files are in various directories and skipping around them using an off the shelf FTP client
is bad enough but my latest one, provided by numptyISP.com times out after less than 1 minute
and is extremely annoying to work with.

I am setting about designing an FTP client which suits the way I work. I obviously work in a
different way to most developers, otherwise FTP clients would do what I want them to do rather
than what some designer thought I mike like.

I already have the upload part of the client sorted as I have several of those in use, updating
clients websites from their local databases.

I am writing an FTP client with some unique features aimed at the way I work but I am having a
problem listing the files on a remote server, which is why I posed the original question in
this thread.

I found the Dave Summers FTP client and thought that was the original one I had used for
reference but for some reason, there is an OCX error preventing me from running that
application.

I have searched this forum and Googled the problem but thought it was wise to ask here if
anyone could help.

Keith
 
Keith,

If you like to use Dave Summers' FTP, we might be able to help you, but than please describe exactly what you refer as 'an OCX error preventing me from running'

Regards,

Jockey(2)
 
When I try to run the app or edit the ftpclient form I get an error:

Code:
OLE error code 0x80040154: Class not registered. OLE object is being ignored. Record number 17

Keith
 
The form started is missing an OCX control you don't have installed and/or registered. Like the error says.

Open the ftpclient.scx as table and GOTO 17. In the OLE2 field you'll find what OCX file is tried to being used.

Did you install VFP on your computer or just copied it over to a new PC? Because what I see is its just using the olestatusbar of the mscomctl.ocx, and that ocx is not part of Win7. But it is installed with VFP9.

Bye, Olaf.

 
I bet 's not part of the system, it may not really be installed with VFP, as I thought, though MSCOMCTL.MSM is mentioned in redist.txt in HOME().
It was installed with older Office versions and therefore quite common part of the system already. But ActiveX usage goes down,if it i't even already down to niö in Office 2010 or Office 2012. Though Office apps stay COM Servers.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top