Skip files in GetFiles Method (wodSFTP / wodSFTP.NET / wodSFTPdll)
We are testing an evaluation version of WodFtpDLX on Powerbuilder 7.
In this testing we want to achieve downloading .sql files. Base on the documentation GetFiles method will fire LoopItem event wherein we can add a script to skip or include files. However, the powerscript below failed to do this.
---using Skip
if itemtype = 0 then
Skip = True
else
if Right(RemoteFile, 4) = .sql then
Skip = False
else
Skip = True
end if
end if
with the script above i am not getting any errors but it does not skip any file. so i tried to use ItemSkip property as i found in the documentation that some programming environment like Delphi does not return values back to WodFtpDLX.
if itemtype = 0 then
ole_wodftp.object.ItemSkip = True
else
if Right(RemoteFile, 4) = .sql then
ole_wodftp.object.ItemSkip = False
else
ole_wodftp.object.ItemSkip = True
end if
end if
please give me any idea on the script above as i am getting errors like invalid property to object when using ItemSkip.
your help is very much appreciated.
thanks
Clark Manlosa
Complete thread:
- Skip files in GetFiles Method - Clark Manlosa, 2008-05-20, 09:16
- Re: Skip files in GetFiles Method - woddrazen, 2008-05-20, 09:37
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-20, 17:40
- Re: Skip files in GetFiles Method - wodDamir, 2008-05-20, 19:40
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-21, 10:20
- Re: Skip files in GetFiles Method - wodDamir, 2008-05-21, 11:59
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-21, 12:50
- Re: Skip files in GetFiles Method - wodDamir, 2008-05-21, 13:09
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-21, 12:50
- Re: Skip files in GetFiles Method - wodDamir, 2008-05-21, 11:59
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-21, 10:20
- Re: Skip files in GetFiles Method - wodDamir, 2008-05-20, 19:40
- Re: Skip files in GetFiles Method - Clark Manlosa, 2008-05-20, 17:40
- Re: Skip files in GetFiles Method - woddrazen, 2008-05-20, 09:37