NetTalk Central

Author Topic: FTP One File  (Read 34857 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
FTP One File
« on: October 18, 2013, 09:15:49 AM »
Code in this template looks now as this.

  #if(%DownloadTheFile=0)
    LocNETFTPQ.LocalFile        = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
    LocNETFTPQ.UseTempFile      = band(%RtnParStr,NetFTP:UseTempFile)
    LocNETFTPQ.Action           = ftp:ActionUpload
  #else
    LocNETFTPQ.Remotefile       = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
    LocNETFTPQ.Action           = ftp:ActionDownload
  #endif

Someone change x into ftpx but did not done change through all code and it cause error in compiling time so make I made change this code into

    LocNETFTPQ.LocalFile        = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

and everything works well.

Best regards,

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: FTP One File
« Reply #1 on: October 20, 2013, 09:58:31 AM »
thanks - fixed in 7.27 (which is up already I think.)

cheers
Bruce