Need help on basic code

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Posts: 1
Joined: Tue Dec 04, 2018 4:13 am

Need help on basic code

Post by iliya » Tue Dec 04, 2018 4:18 am

I want to make a windows 10 program where I can click a button and a file gets uploaded (From the LiveCode Program, to my system) to c:\Programfiles\common (something like that) Can someone provide me with a sample code>

Posts: 430
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)

Re: Need help on basic code

Post by AndyP » Tue Dec 04, 2018 9:54 am

Welcome to the forums iliya,

What you want to do is fairly simple with LiveCode.
Instead of showing the whole code on how to do this, I think you would find it better in the long term to source the information and put it together yourself. I have provided a few links below which should help you.

LiveCode Lessons - Working with Files

LiveCode Wiki - a great source of examples and easy to follow explanations

BRIGHAM YOUNG UNIVERSITY - will give you a good start in LiveCode

Once you have some code, post it back here and the community will look through it and advice on any changes that may be required.
Andy Piddock - Mini LC IDE alternative - Script Editor colour theming - Search across 8 LC resources

VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6073
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Need help on basic code

Post by dunbarx » Tue Dec 04, 2018 3:54 pm

What Andy said.

But basically, and there are other ways to do this:

Code: Select all

   open file yourFilePath for text write
   write yourData to file yourFilePath
   close file yourFilePath
Craig Newman

Posts: 1983
Joined: Sun Sep 23, 2007 4:58 pm

Re: Need help on basic code

Post by SparkOut » Tue Dec 04, 2018 5:12 pm

Also useful will be reference on specialFolderPath codes, as definitely explored by Ken Ray a long time ago, but still valid today on Windows 10 ... ile010.htm

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”