Subject Re: Direct copy instead of ftp
From Ken Mayer <dbase@nospam.goldenstag.net>
Date Wed, 28 Sep 2016 05:05:33 -0700
Newsgroups dbase.getting-started

On 9/27/2016 11:19 PM, Mervyn Bick wrote:
> On 28-Sep-16 6:56 AM, Ken Mayer wrote:
>
>> By the way, don't just "copy and paste" the code, copy the source file
>> and make sure you have the *other* files that are required. In the form,
>> if you open it in the source code editor, it notes in the comments at
>> the top, that there are files it is dependent on. Copy those over as
>> well (PasswordMaskEF.cc and Ini.cc -- the activeX controls should be
>> installed and ready to be used).
>>
>> The attached form shows what it should look like when it opens if
>> everything is in place. You need to fill in the information in the
>> entryfields filled in in red. The default port for FTP is 21, so type
>> that in ...
>
> I'm also having problems.
>
> I've edited testFTP.pg to reflect a local folder and an FTP site that I
> can access without a problem using FileZilla.  Running teh program gives
> an error "This product is not licensed fro this operation.".
>
> Running SocketFTPExample.wfm gives the error  "File does not exist
> :ini.cc".  The file is in the same directory as the sourcecode.  The
> local directory is, however, shown as the root directory of the C:
> drive.  dBASE itself is on the C: drive but all sourcecode and data is
> on the D: drive.
>
> I can't do it now but later today I'll see if I can find where the C:\
> is coming from.

Odd, I don't see anything in the code that would be looking at drive C: ...

however, I do note in the form's onOpen I am using "cPass" where I
should be using "cPassword"

oIni.setValue( "FTP", "Password", cPassword )

I have no idea how that slipped past, as I spent a lot of time on this
form.

Ken



--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm