Search found 19 matches

by Josh1910
Sun Oct 29, 2017 3:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using repeat loop to add values
Replies: 20
Views: 13412

Re: Using repeat loop to add values

Thank you all for the wonderful replies. Really do love this community!
by Josh1910
Wed Oct 25, 2017 5:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using repeat loop to add values
Replies: 20
Views: 13412

Using repeat loop to add values

I feel like I knew this at one point, but I've lost it. Long story short, I wanted to add values in an array together, so something like this: repeat with z=1 to thisNum add Numb&z tempSum end repeat The problem is that it tries to add "Numb1" instead of the value in the container Numb1. I did it a ...
by Josh1910
Fri Aug 18, 2017 4:35 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Doing something at time intervals
Replies: 6
Views: 4500

Re: Doing something at time intervals

Thank you all! I spent all day yesterday trying different approaches. I'll never be as good as all of you, but I do love programming. I did give both approaches here (and a few I found via google) a go. In the end, I went with the below. I know I've mangled your eloquent code, but I definitely appre...
by Josh1910
Thu Aug 17, 2017 9:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Doing something at time intervals
Replies: 6
Views: 4500

Doing something at time intervals

Hi all,

I think I need a repeat loop to do this. But for different time intervals (e.g., every 0.2 seconds of 2.4 seconds) I want to do an action. How would this look?

Long story short, I want a bar to grow or shrink as time passes. Any help would be appreciated.

Josh
by Josh1910
Sun Mar 12, 2017 10:27 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Copy paste doesn't work
Replies: 0
Views: 1962

Copy paste doesn't work

It used to work, but I can no longer copy paste from LC to other locations (e.g., notepad) and-even worse-I can't do it within livecode either. If I try ctrl-X or cut, the code is just deleted. Anyone else having this problem and is there a solution?
by Josh1910
Fri Jan 27, 2017 9:18 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using a loop to name a variable and assign value
Replies: 3
Views: 3171

Using a loop to name a variable and assign value

Here's a snippet: repeat with i=1 to thisNum put random(5) into thisDig if i = 1 then put thisDig into Numb1 if i = 2 then put thisDig into Numb2 if i = 3 then put thisDig into Numb3 if i = 4 then put thisDig into Numb4 if i = 5 then put thisDig into Numb5 end repeat I tried put thisDig into "Numb" ...
by Josh1910
Fri Jan 27, 2017 8:04 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Modified outside of script
Replies: 12
Views: 8897

Modified outside of script

Hi all,

See the attachment for the error message. Long story short, I keep losing quite a bit of work because I keep getting this message that the code is being edited outside of the editor. This isn't true and I can't seem to resolve this situation (restarting hasn't worked). Thanks for any help.
by Josh1910
Thu Jan 19, 2017 9:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terrible situation: I can't open my program
Replies: 4
Views: 4072

Re: Terrible situation: I can't open my program

Problem address with this code: on mouseUp answer file "open" -- select your stack if it = empty then exit mouseup set the lockmessages to true open stack it set the lockmessages to false end mouseUp from one of the many heroes on this forum: http://forums.livecode.com/viewtopic.php?f=7&t=20272&p=10...
by Josh1910
Thu Jan 19, 2017 9:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Terrible situation: I can't open my program
Replies: 4
Views: 4072

Terrible situation: I can't open my program

It just hangs with an hourglass. Other LC programs open, but not the one that I've spent a week working on. I'm guessing some repeat loop is automatically starting on program launch which is causing the hang, but I don't have any idea. Is there any way to alter the code some way to gain access to th...
by Josh1910
Wed Jan 18, 2017 2:45 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Re: Creating and analyzing several text files

Thanks, Klaus. This is useful. My only lingering question is why I can't write new files using the same code if I run the program a second time (i.e., I have to quit the program and then restart it). Any thoughts on that?
by Josh1910
Wed Jan 18, 2017 12:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Re: Creating and analyzing several text files

Final update (unless someone has two cents to add). It work near the desktop (avoiding subdirectories) and, unfortunately, it only works once (i.e., LC needs to be restarted every time for the file to be created). A bit lame, but hopefully it'll suffice.
by Josh1910
Wed Jan 18, 2017 12:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Re: Creating and analyzing several text files

IMPORTANT: I think my program was embedded into too many subdirectories. Hopefully, this isn't premature celebration, but it seems to work if I put the program on the desktop.
by Josh1910
Wed Jan 18, 2017 11:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Re: Creating and analyzing several text files

This is so puzzling :( None of my file code works (reading or writing).
by Josh1910
Wed Jan 18, 2017 11:24 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Re: Creating and analyzing several text files

Thanks for the help! I've tried this and no file still shows up. I've tried refreshing the folder and there is no error (compile or runtime), so I'm still not sure what the problem is... I'll try making a text file and seeing if the data writes to that.
by Josh1910
Wed Jan 18, 2017 4:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Creating and analyzing several text files
Replies: 8
Views: 5750

Creating and analyzing several text files

Hi all, I used to use code like the following to create data files: put "File:PilotData.txt" into myFile put url "File:PilotData.txt" into myData put "test" into myData put myData into URL myFile but now nothing seems to work. I can't create a file regardless of how I order or work these commands. A...