读取FtpGetFile返回值问题,奇怪
shien 2005-05-24 12:10:40 Public Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" _
(ByVal hFtpSession As Long, ByVal lpszRemoteFile As String, _
ByVal lpszNewFile As String, ByVal fFailIfExists As Boolean, ByVal dwFlagsAndAttributes As Long, _
ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
程序中调用了API的FtpGetFile函数
dim isFlag as boolean
isFlag=FtpGetFile (....)
if not isFlag then
.....
end if
单步执行发现isFlag的值为False, 但是就是不能进入
if not isFlag then
.....
end if
后来把判断改为 if isFlag=false then 才正常了几天
现在又不行了,只有改写为if cstr(isFlag)="False" then