Problem with FTP
Problem with FTP
Hello Antonio
I have this problems with oFtp:Directory
With FW7.07 I used
aFiles = oFTP:Directory( "filelist\01\")
and works
Now with FW 8.03 I have this error
Error description: Error BASE/1066 Parametro errato: condizionale
Thank MAurizio
I have this problems with oFtp:Directory
With FW7.07 I used
aFiles = oFTP:Directory( "filelist\01\")
and works
Now with FW 8.03 I have this error
Error description: Error BASE/1066 Parametro errato: condizionale
Thank MAurizio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Maurizio,
Lets modify the source code to check whats going on:
Thanks for your feedback,
Lets modify the source code to check whats going on:
Code: Select all
local lResult
...
while ValType( lResult := InternetFindNextFile( hFTPDir, @cBuffer ) ) == "L" .and. lResult
oWin32FindData:cBuffer = cBuffer
AAdd( aFiles, { oWin32FindData:cFileName,;
oWin32FindData:nSizeLow,;
FileTimeToDate( oWin32FindData:nLastWriteAccess ),;
FileTimeToTime( oWin32FindData:nLastWriteAccess ) } )
end
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Maurizio,
Please add this code to your main PRG and try it again, thanks:
Please add this code to your main PRG and try it again, thanks:
Code: Select all
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <wininet.h>
HB_FUNC( INTERNETFINDNEXTFILE )
{
hb_retl( InternetFindNextFile( ( HINTERNET ) hb_parnl( 1 ),
( LPWIN32_FIND_DATA ) hb_parc( 2 ) ) );
}
#pragma ENDDUMP
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Marco Turco
- Posts: 858
- Joined: Fri Oct 07, 2005 12:00 pm
- Location: London
- Contact: