Search found 4886 matches

by jacque
Wed Jun 19, 2019 7:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sorting data question
Replies: 12
Views: 201

Re: Sorting data question

Thanks, I get it now. I think the best way to approach this would be an array. Try this: on sortData put fld 1 into tData repeat for each line l in tData put item 1 to 3 of l into tKey put l & cr after tSortArray[tKey] end repeat end sortData This will automatically create the number of "variables",...
by jacque
Wed Jun 19, 2019 5:23 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: What is the opposite of launch?
Replies: 13
Views: 514

Re: What is the opposite of launch?

Ah. You're ahead of me already. :-)

I'd think that passing the request would trigger the closeStack handler so I'm not sure why it doesn't. Have you tried putting a breakpoint in the closeStack handler to see if it runs? If it doesn't you may have to call "closeStack" yourself.
by jacque
Wed Jun 19, 2019 4:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sorting data question
Replies: 12
Views: 201

Re: Sorting data question

I'm still not sure what you need. Will you always be concerned about only the first 3 items in the line, or do you need to look at all of them? In two theoretical lines, if the first items are identical and second items are not, which variable would the lines go into? What if only the third items di...
by jacque
Tue Jun 18, 2019 5:05 pm
Forum: Talking LiveCode
Topic: OpenStack not runnning
Replies: 16
Views: 278

Re: OpenStack not runnning

I don't know if this applies in your case, but if you close a stack and destroystack is false, the stack remains in RAM. The next time you open it, there are no open* messages sent because to the engine, the stack is already open. If your scripts reference an unopened stack to get a property or some...
by jacque
Tue Jun 18, 2019 4:48 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: What is the opposite of launch?
Replies: 13
Views: 514

Re: What is the opposite of launch?

Clicking the X closes the window only. Most apps on Mac act this way since the user may want to open another document from the File menu. If you want to quit instead, add your quitting code to a CloseStack Request handler.
by jacque
Mon Jun 17, 2019 9:36 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stack file version...
Replies: 10
Views: 244

Re: Stack file version...

As long as they don't save the plugin, it will retain its older stackfile version. LC is almost always backward compatible so nothing bad will happen. Why do you need to save the plugin? if you just want to retain user data, write it to disk and load it in as needed instead.
by jacque
Mon Jun 17, 2019 6:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Stack file version...
Replies: 10
Views: 244

Re: Stack file version...

Every now and then the format of LC's stack binary has to change to accommodate new features. This has happened maybe 4 or 5 times over the years. The stackfileversion tells you which of these binary formats is currently in use, which is the format any open stacks will also be saved in. If you would...
by jacque
Sun Jun 16, 2019 7:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Counter Intuitive
Replies: 8
Views: 279

Re: Counter Intuitive

ID numbers mean that kiddos have to go and look them up .
If you want consistency just use "the ID of img x" everywhere.

The point being that the two are consistent, but one offers an alternative reference.

Edit: I see that speedy Klaus has beat me to it.
by jacque
Sun Jun 16, 2019 5:56 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 345

Re: Environment: which applies when?

On mobile the documents folder is not available to anyone (or any other app) because it's inside the app sandbox. To share resources outside the sandbox you'd use specialFolderPath("external documents"). Files in documents are safe unless the user has rooted the android device or jailbroken the iPho...
by jacque
Sun Jun 16, 2019 5:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Counter Intuitive
Replies: 8
Views: 279

Re: Counter Intuitive

They are consistent in that both accept ID numbers. In fact, that's all an icon would accept until the image name was added later as a convenience.

If you want to teach just one thing, use I'Ds only at first.
by jacque
Sat Jun 15, 2019 5:11 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Environment: which applies when?
Replies: 11
Views: 345

Re: Environment: which applies when?

The OS is returned in "the platform". Only the IDE is considered "development", the mobile environment is anything that is running the mobile version of the OS whether it's a phone, simulator, or emulator. Note that the iOS simulator finds files using the same paths as the IDE (that is, the Mac Find...
by jacque
Sat Jun 15, 2019 4:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: I cant change the Font
Replies: 7
Views: 221

Re: I cant change the Font

Now on a second card I have 3 fields with information in them and I am unable to make the font bigger, or smaller or even change the font at all HELP please! Something similar happened to me a while back, not with fonts but with other properties. It turned out I'd inadvertently made duplicates of t...
by jacque
Fri Jun 14, 2019 7:21 pm
Forum: Converting to LiveCode
Topic: Issue while filtering a received string
Replies: 8
Views: 322

Re: Issue while filtering a received string

Accessing fields is one of the slowest things in LC so it is always better to move the text to a variable, process it, and then put it back. But since you're just testing I've left most of the field access the way you have it now. For the card script (I named the handler, since you didn't include th...
by jacque
Fri Jun 14, 2019 4:55 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Scrolling
Replies: 1
Views: 113

Re: Scrolling

That lesson needs to be updated, it's 7 years out of date and much has changed since then. You no longer need to set the compositor, tilesize, etc. and it isn't necessary to track mouseMove to determine the scroll. I'm not at my computer right now but maybe someone here can post an example of the ne...
by jacque
Fri Jun 14, 2019 4:42 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Pasteurized Arrowkeys
Replies: 13
Views: 334

Re: Pasteurized Arrowkeys

Dar posted a workable solution to the mailing list. Generally if you need to exit a script, changing the structure will allow it.

If you really want to do it in a "goto" way, you can experiment with "exit to top" or "return".

Go to advanced search