Need help on basic code
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Need help on basic code
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>
Re: Need help on basic code
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
]http://lessons.livecode.com/m/4071/c/16761
LiveCode Wiki - a great source of examples and easy to follow explanations
http://livecode.wikia.com/wiki/Livecode_Wiki
BRIGHAM YOUNG UNIVERSITY - will give you a good start in LiveCode
http://livecode.byu.edu/indexgeneric.php
http://livecode.byu.edu/extfiles/exFiles.php
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.
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
]http://lessons.livecode.com/m/4071/c/16761
LiveCode Wiki - a great source of examples and easy to follow explanations
http://livecode.wikia.com/wiki/Livecode_Wiki
BRIGHAM YOUNG UNIVERSITY - will give you a good start in LiveCode
http://livecode.byu.edu/indexgeneric.php
http://livecode.byu.edu/extfiles/exFiles.php
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
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Need help on basic code
What Andy said.
But basically, and there are other ways to do this:
Craig Newman
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
Re: Need help on basic code
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
http://www.sonsothunder.com/devres/live ... ile010.htm
http://www.sonsothunder.com/devres/live ... ile010.htm