What is the difference?

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
Happyrever
Posts: 55
Joined: Sat Sep 10, 2011 12:22 pm

What is the difference?

Post by Happyrever » Thu Feb 23, 2012 4:03 pm

I have tried these variations but cannot see why they all dont work, any ideas?
version 1 works
put "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk ... erDrop.ico" into Serverpath
put url Serverpath into url "binfile:C:\Pt-G\WaterDrop.ico"

version 2 works
put url "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk ... erDrop.ico" into url "binfile:C:\Pt-G\WaterDrop.ico"

version 3 will not work it just puts a corrupt file of 221 bytes instead of the 46.54kbytes
put "ftp://scali.co.uk:zxc@ftp.ajperks.co.uk/Water/" into Serverpath
put url Serverpath & "WaterDrop.ico" into url "binfile:C:\Pt-G\WaterDrop.ico"

Colours are only to show the differences

It makes a lot of difference in software maintenance in my case, so the answer is important.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: What is the difference?

Post by sturgis » Thu Feb 23, 2012 4:11 pm

You want it to complete the evaluation of serverpath & "WaterDrop.ico" first so try:

Code: Select all

put URL (serverpath & "WaterDrop.ico") into "binfile:C:\Pt-G\WaterDrop.ico"

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

Re: What is the difference?

Post by Klaus » Thu Feb 23, 2012 5:08 pm

Exactamente :D

Post Reply