break off a command

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

break off a command

Post by Neurox66 » Tue Aug 06, 2013 5:02 pm

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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Klaus
Posts: 14221
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: break off a command

Post by Klaus » Tue Aug 06, 2013 5:40 pm

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

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Contact:

Re: break off a command

Post by Neurox66 » Wed Aug 07, 2013 1:30 pm

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
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

Klaus
Posts: 14221
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: break off a command

Post by Klaus » Wed Aug 07, 2013 2:16 pm

Hi Paolo,

sorry, no such command...


Best

Klaus

Post Reply