Search found 243 matches

by RossG
Mon Oct 03, 2016 5:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A Very Strange Error
Replies: 12
Views: 2175

Re: A Very Strange Error

Hi RossG, I've never needed to figure out "handlers". post your LiveCode script with the while loop :) Paolo The while loop is OK sometimes. Usually after the first run it goes wrong. The first stack I've had which crashes LC and the stand-alone. I'll try adding this code to the Explicator stack an...
by RossG
Mon Oct 03, 2016 6:03 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A Very Strange Error
Replies: 12
Views: 2175

Re: A Very Strange Error

Richard

I've never needed to figure out "handlers".

Can you explain or direct me to an explanation?
by RossG
Mon Oct 03, 2016 1:41 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A Very Strange Error
Replies: 12
Views: 2175

A Very Strange Error

I have a function which sometimes works and sometimes doesn't. The problem is a repeat loop... repeat with r = 16 to 36. The error occurs on the first iteration of the loop. The value of r is somehow changed - to 15 - so the loop is exited. This happens even when I add a line before to put 16 into r...
by RossG
Sat Oct 01, 2016 7:46 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Slow stack needs speed
Replies: 3
Views: 1277

Re: Slow stack needs speed

Craig

LC 7.1.2 should do it.
by RossG
Sat Oct 01, 2016 12:37 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Slow stack needs speed
Replies: 3
Views: 1277

Slow stack needs speed

Attached a stack which I would like to go faster.

I guess that re-building the array in each of the
functions ROTT16 to ROTT36 is the bottle-neck.

Load a file - some samples included.

Suggestions welcome.
by RossG
Fri Sep 30, 2016 11:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Compare comma-delimited strings
Replies: 10
Views: 1471

Re: Compare comma-delimited strings

Attached is my test stack with a file of number sets.

Any better solutions?
by RossG
Thu Sep 29, 2016 12:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Compare comma-delimited strings
Replies: 10
Views: 1471

Re: Compare comma-delimited strings

Richard
Thanks for those "magic" words.
I made a test stack and it didn't seem
to like the commas.
After reading your reply I tried it again
and it worked.
Darnedest thing.
by RossG
Wed Sep 28, 2016 11:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Compare comma-delimited strings
Replies: 10
Views: 1471

Compare comma-delimited strings

Other than comparing item-by-item is there a way to find
duplicates?

My prog produces sets of eight numbers from a larger
string and often produces duplicates so I might have

"1,2,3,4,5,6,7,8"
"1,2,3,4,5,6,7,8"

Could delete the commas and use the "=" function.

Any other ways?
by RossG
Thu Jul 07, 2016 1:24 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scale Factor
Replies: 5
Views: 1134

Re: Scale Factor

I've been trying to scale a stack and even though
it appears in its new size in the IDE after I save
it and re-open it it appears at the original scale.

LC 7.1.2
by RossG
Wed Jul 06, 2016 6:46 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: foregroundColor lost in transit...
Replies: 1
Views: 870

foregroundColor lost in transit...

Is there a way for a text item to retain its foregroundColor
setting when it's move to a different field?
by RossG
Fri Jul 01, 2016 8:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Writing to a file
Replies: 36
Views: 4763

Re: Writing to a file

-hh Just what I needed. I missed it in your earlier post as it seemed an afterthought. -- works on Mac/Win/Linux on mouseUp global fName,newSFP if word 1 of the label of me = "Open" then LAUNCH DOCUMENT (newSFP & "/" & fName) # <--- Uses current system's launch service else ... re: naming a button "...
by RossG
Fri Jul 01, 2016 3:39 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Writing to a file
Replies: 36
Views: 4763

Re: Writing to a file

Progression Designer v1.3.zip Thanks for your efforts gentlemen but I'm still struggling with this one. So attached is the stack in question. Put some numbers into the four fields. I suggest 4,11,35 and 10. Click the "Calculate Progression" button. Click the "Save as..." Label will change to "Open....
by RossG
Wed Jun 29, 2016 4:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Writing to a file
Replies: 36
Views: 4763

Re: Writing to a file

Should have made it clear that I want the file
to open in Notepad or whatever is set as the
default for .txt files.
by RossG
Tue Jun 28, 2016 7:32 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Writing to a file
Replies: 36
Views: 4763

Re: Writing to a file

Next step: to open the file just created with

put field tProgression into URL ("file:" & newSFP & "/" & fName)

Tried all the combinations I can think of but no luck so far.

Suggestions appreciated.

Win XP (for ever).
by RossG
Tue Jun 28, 2016 3:23 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Array's awry
Replies: 3
Views: 1350

Re: Array's awry

Craig
A bit befuddled this morning I forgot what I
knew about this subject but as the mist lifted
I realized that I had to do a bit of coding to
get the result I wanted.

So much to learn, so little time.

Thanks for taking the time.

Go to advanced search