when i declare ret like this the myip = "" runs everytime regardless of whether ret is true or falsevb Code:
Dim ret As Boolean ' some other code ret = FtpPutFile(server, fname, fname, FTP_TRANSFER_TYPE_BINARY, 0) If Not ret Then myip = "" ' more code
if i don't declare ret and leave it to vb to cast it as a variant then ret will still return true or false and the if statement runs correctly
what logic am i missing about declaring ret?




Reply With Quote