Search found 368 matches

by bwmilby
Mon Mar 08, 2021 7:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 80
Views: 5403

Re: Sort multidimensional array

For other readers, I attach an example - arrays shown with tree view widgets, unfortunately I haven't figured out how to expand all in script so needs to be done manually (set the foldState doesn't seem to work... if you know how to expand all branches of the tree view in script do let me know!). F...
by bwmilby
Sun Mar 07, 2021 5:40 pm
Forum: Talking LiveCode
Topic: Stung by the Message Path! Lessons learnt..
Replies: 12
Views: 386

Re: Stung by the Message Path! Lessons learnt..

If you have a project with dozens of stacks that are not all loaded at once, you can get into a state where the preOpenStack is not called if it is included in the card script. The test that I uploaded shows how this can happen. I’m not talking about the launch stack, but any other stack in the proj...
by bwmilby
Sun Mar 07, 2021 2:41 am
Forum: Talking LiveCode
Topic: Stung by the Message Path! Lessons learnt..
Replies: 12
Views: 386

Re: Stung by the Message Path! Lessons learnt..

I just tested this and you can directly navigate to a specific card on an unopened stack. So as long as you know that you will never directly navigate to a specific card, you are safe putting the code in the first card. Stk A - list Stk B in the stack files, button script go card 2 of stack "StkB" S...
by bwmilby
Sun Mar 07, 2021 2:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need a different MobilePick than the generic LC picker. - Solved
Replies: 18
Views: 581

Re: Need a different MobilePick than the generic LC picker.

On Android, when the user goes to scroll a group of selectable items, the item is selected during the scrolling process. With iOS, the selectable item is not able to be selected until the scroller has stopped (same code used in both platforms, just different platforms gives different behaviors to t...
by bwmilby
Sat Mar 06, 2021 11:30 pm
Forum: iOS Deployment
Topic: IOS Deployment
Replies: 9
Views: 386

Re: IOS Deployment

Here are a couple of screen shots to help. First, create a new project in Xcode and save it somewhere convenient. You are only using this to have it generate the signing certificate that LC will use. Once the project is created, the tab to concentrate on is the "Signing" one. Xcode.png With your pho...
by bwmilby
Sat Mar 06, 2021 9:03 pm
Forum: iOS Deployment
Topic: IOS Deployment
Replies: 9
Views: 386

Re: IOS Deployment

You can also use XCode to manage test certificates if not a paid Dev. You will need to create a project in XCode and set a few options (match the info used in LC) and let it manage the certificate. You need to renew it every week, but it is good enough to test on device. You will also need to select...
by bwmilby
Thu Feb 25, 2021 10:55 pm
Forum: Windows
Topic: Line endings when copying & pasting to notepad
Replies: 4
Views: 150

Re: Line endings when copying & pasting to notepad

You could try this: -- PR 6293 for bug 19206 should mostly eliminate the need for this -- handler since the developer can specify what type of data to copy. -- This handler will copy the UTF8 plain text representation off the -- clipboard, clear the clipboard, and place that representation back -- a...
by bwmilby
Tue Feb 09, 2021 10:35 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A question about call by reference
Replies: 23
Views: 1760

Re: A question about call by reference

Bernd,
That is a not-so-insignificant improvement. I wonder if that would be something to suggest to the team as an improvement? I have not looked at the code in that handler though.
Thanks,
Brian
by bwmilby
Sun Feb 07, 2021 11:37 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A question about call by reference
Replies: 23
Views: 1760

Re: A question about call by reference

Probably a question for LCMark. I'll try... the type of data that you are passing is immutable and the handler requires a mutable variable. Try it with any other constant and you get the same thing. When the interpreter gets to setting up the call to testhandler, it is trying to create a pointer to ...
by bwmilby
Sun Feb 07, 2021 7:23 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A question about call by reference
Replies: 23
Views: 1760

Re: A question about call by reference

That is what I was saying. The @ means that you must use a variable when calling the function/handler.
by bwmilby
Sun Feb 07, 2021 5:31 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: A question about call by reference
Replies: 23
Views: 1760

Re: A question about call by reference

In another script are statements to create a new instance of the class and then get mBeta from that instance for the purpose of using it as a parameter to handler MyHandler . Something like this: ... put newClassName() into tInstanceVariable ... MyHandler getBeta(tInstanceVariable), tOtherParameter...
by bwmilby
Mon Feb 01, 2021 10:27 pm
Forum: iOS Deployment
Topic: Problem with iPad test
Replies: 1
Views: 372

Re: Problem with iPad test

Generally I will start the proper emulated device before attempting to test from LC. So, from Xcode I would launch the simulator and then launch the correct device/OS combination that I wanted to test on.
by bwmilby
Sat Jan 23, 2021 1:52 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "split as set" documentation mystifying
Replies: 6
Views: 550

Re: "split as set" documentation mystifying

I think that “as set” is still part of the first form (where a delimiter is provided). I agree that the example should be moved. I’ll probably submit a PR on it this weekend unless someone else does it first.
by bwmilby
Sat Jan 23, 2021 12:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "split as set" documentation mystifying
Replies: 6
Views: 550

Re: "split as set" documentation mystifying

The second form comment is correct. The first form allows specifying the delimiter(s) and the second uses the rowDelimiter and the columnDelimiter.

Go to advanced search