Page 1 of 1
break off a command
Posted: Tue Aug 06, 2013 5:02 pm
by Neurox66
I've a question

I use this command to read a content of folder :
Code: Select all
put url ("ftp://ftp.donotexist.com/") into vAddress
But, if the folder not exist is possible to interupt 'Put' command ?
Thanks,
Paolo
Re: break off a command
Posted: Tue Aug 06, 2013 5:40 pm
by Klaus
Buongiorno Paolo,
you could check the result:
Code: Select all
...
put url ("ftp://ftp.donotexist.com/") into tAddress
if the result <> empty then
answer the result
end if
...
Gives me "invalid host address" almost immediately!
Best
Klaus
Re: break off a command
Posted: Wed Aug 07, 2013 1:30 pm
by Neurox66
Thanks Klaus,
I've already a control for empty result.
I'll thought that there was a command or function for force ended the put command.
Paolo
Re: break off a command
Posted: Wed Aug 07, 2013 2:16 pm
by Klaus
Hi Paolo,
sorry, no such command...
Best
Klaus