Save some data question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Save some data question

Post by lohill » Sat Apr 10, 2010 11:31 pm

If I have a variable called tData that contains lines of comma delimited data and I have another variable called tExport (created from 'ask file') that contains "/Users/Larry/Desktop/List.csv" shouldn't the following statement save the data to that file on my desktop:

put tData into URL tExport

I'm not sure what I'm missing. Thanks.

Larry

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

Re: Save some data question

Post by sturgis » Sat Apr 10, 2010 11:41 pm

Try this.

Code: Select all

   put tData into URL ("File:" & tExport)
And check out file, and binfile in the dictionary for more info.

lohill
Posts: 770
Joined: Tue Dec 08, 2009 6:37 pm

Re: Save some data question

Post by lohill » Sun Apr 11, 2010 3:27 pm

Thanks sturgis,

That worked just fine. I had looked up URL in the dictionary but had not thought of looking up File.

Regards,
Larry

Post Reply