NetTalk Central

Author Topic: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template  (Read 2793 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
« on: October 12, 2013, 02:20:01 AM »
Hi Bruce,

I am getting an error since upgrading to 7.26 : Syntax Error: Unknown identifier: x"
In this line :  LocNETFTPQ.Remotefile       = sub(pLocalPath,x+1,len(pLocalPath) - ftpx)

I think it is related to: Change: FTP : NetTalkSendOndFTP extension template renamed variable x to ftpx.

Regards

Johan de Klerk
« Last Edit: October 12, 2013, 04:58:04 AM by Johan »
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
« Reply #1 on: October 13, 2013, 11:03:13 PM »
yes, the first x there should be ftpx.
you can correct it in NetTalk.Tpl
lines 5529 and 5533
LocNETFTPQ.LocalFile        = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
should be
LocNETFTPQ.LocalFile        = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

and
LocNETFTPQ.Remotefile       = sub(%LocalPath,x+1,len(%LocalPath) - ftpx)
should be
LocNETFTPQ.Remotefile       = sub(%LocalPath,ftpx+1,len(%LocalPath) - ftpx)

Cheers
Bruce

Johan de Klerk

  • Full Member
  • ***
  • Posts: 217
  • Johan de Klerk
    • View Profile
    • Designer Software
Re: NT 7.26 Error in FTP : NetTalkSendOneFTP extension template
« Reply #2 on: October 14, 2013, 12:01:51 AM »
Hi Bruce,

Thanks that fixed it.

Regards

Johan de Klerk
Clarion 10, NT 11.57