Search found 640 matches

by Simon Knight
Wed Mar 17, 2021 12:08 pm
Forum: Talking LiveCode
Topic: CloseStack, CloseStackRequest don't run in standalone
Replies: 4
Views: 544

Re: CloseStack, CloseStackRequest don't run in standalone

So this is what was occurring and it was all my fault (surprise!) The preferences file was causing an error : I used an absolute path to describe a field which meant that when the standalone processed it the filepath to the stack was wrong because the the standalone was in a different folder. The st...
by Simon Knight
Tue Mar 16, 2021 6:36 pm
Forum: Talking LiveCode
Topic: CloseStack, CloseStackRequest don't run in standalone
Replies: 4
Views: 544

Re: CloseStack, CloseStackRequest don't run in standalone

Hi Jean-Marc, Thanks for the link, it certainly points towards the issue although I still don't understand what is going on. There is another issue in that my startusing substack calls which are in the preopenstack handler are not being called or don't place the substack scripts into the message pat...
by Simon Knight
Tue Mar 16, 2021 9:52 am
Forum: Talking LiveCode
Topic: CloseStack, CloseStackRequest don't run in standalone
Replies: 4
Views: 544

Re: CloseStack, CloseStackRequest don't run in standalone

....and don't try this

Adding waits
2021-03-16-085030-Screenshot 2021-03-16 at 08.50.25.png
The IDE gets very unhappy when trying to build the standalone

S
by Simon Knight
Tue Mar 16, 2021 9:47 am
Forum: Talking LiveCode
Topic: CloseStack, CloseStackRequest don't run in standalone
Replies: 4
Views: 544

CloseStack, CloseStackRequest don't run in standalone

Hi, I have a utility application (i.e. pretty rough for my own use only!) that saves data to a preference file. The preferences are loaded in a preopenstack handler and this all works. I'm having problems with triggering the save preferences file and have tried both the closeStack and closeStackRequ...
by Simon Knight
Tue Mar 02, 2021 10:01 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

@Thierry,

My fault as I raised the speed bumps as an aside.

Simon
by Simon Knight
Tue Mar 02, 2021 9:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

I didn't know about the changes in V8 so thanks for the link and quotes.

Simon
by Simon Knight
Tue Mar 02, 2021 8:45 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

Hi Here is a link to my post from 2011 https://forums.livecode.com/viewtopic.php?f=32&t=7069&p=32207&hilit=hours+passing+parameter+reference#p32207 In it I estimate that an operation would take 56 hours, this was reduced to 70 seconds mostly by switching to referenced variable passing. Mind you the ...
by Simon Knight
Tue Mar 02, 2021 12:54 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

plus I think using or not the @ prefix in your parameter won't change much too... it depends on the size of the data being passed: somewhere on this forum I posted about a problem where the routine was taking hours and hours to complete, adding the prefix stopped the duplication of data and reduced...
by Simon Knight
Mon Mar 01, 2021 3:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

Hi all, Crikey how this thread has grown! All good stuff. In my recent project I have been reading file details into an array. The files are image files and the folder structure contains something like 180,000 files. Two lessons I have learnt to speed processing are the use of the pass by reference ...
by Simon Knight
Sun Feb 28, 2021 5:29 pm
Forum: Talking LiveCode
Topic: Lost or slow messages resulting in partial redraw of card.
Replies: 4
Views: 285

Re: Lost or slow messages resulting in partial redraw of card.

Thanks for the tip. I've kept the wait line for the time being but will have a look at refactoring some of the code or even changing to a datagrid.
by Simon Knight
Sun Feb 28, 2021 11:27 am
Forum: Talking LiveCode
Topic: Lost or slow messages resulting in partial redraw of card.
Replies: 4
Views: 285

Re: Lost or slow messages resulting in partial redraw of card.

Hi Again, For the brave or interested here is a link to my stack file https://www.dropbox.com/s/n5ohufooaxffqtq/RAW_RenameV8-2.livecode.zip?dl=0 Please note or be warned that this stack is intended to rename and move raw image files between folders. The renaming is to my liking and is not designed t...
by Simon Knight
Sun Feb 28, 2021 10:26 am
Forum: Talking LiveCode
Topic: Lost or slow messages resulting in partial redraw of card.
Replies: 4
Views: 285

Lost or slow messages resulting in partial redraw of card.

Hi, I'm on a Mac running Big Sur and Livecode Indy 9.6.1 and the problem described occurs in the IDE. I have a project that is a stack with two cards "Main" and "Settings". Card "Main" has what is a complex list based custom control which came from Scott Rossi's web site. This control uses a behavio...
by Simon Knight
Sat Feb 27, 2021 4:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 85
Views: 7696

Re: Sort multidimensional array

Hi, For anyone finding this post and wanting to sort an array it is worth looking at this lesson : https://lessons.livecode.com/m/4071/l/11494-how-do-i-sort-an-array The lesson uses a similar approach to above but converts the results back into an intermediate array. Also there is no need to copy ea...
by Simon Knight
Tue Dec 01, 2020 7:09 pm
Forum: Mac OS
Topic: File rename command and issue with privileges
Replies: 2
Views: 688

File rename command and issue with privileges

Hi, I am in the process of writing a utility to conduct the batch renaming of files in my user account. Unfortunately some files have "custom privileges" set and can not be renamed unless I enter my account password. My Livecode application just ignores them and moves along. I have checked with Appl...
by Simon Knight
Tue Nov 24, 2020 9:26 am
Forum: Talking LiveCode
Topic: Identifying words in camel case phrases
Replies: 17
Views: 1994

Re: Identifying words in camel case phrases

For "got subverted" read "legitimately expanded". 8) and nothing wrong with that! I do so enjoy posting on this forum! (I don't get out much - but then who does at the moment?) UTF should have been implemented at the start, and been the de facto "ASCII" I think we were lucky to get 8 bit ascii whic...

Go to advanced search