@Thierry,
My fault as I raised the speed bumps as an aside.
Simon
Search found 636 matches
- Tue Mar 02, 2021 10:01 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
- Tue Mar 02, 2021 9:52 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
Re: Sort multidimensional array
I didn't know about the changes in V8 so thanks for the link and quotes.
Simon
Simon
- Tue Mar 02, 2021 8:45 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
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 ...
- Tue Mar 02, 2021 12:54 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
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...
- Mon Mar 01, 2021 3:59 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
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 ...
- Sun Feb 28, 2021 5:29 pm
- Forum: Talking LiveCode
- Topic: Lost or slow messages resulting in partial redraw of card.
- Replies: 4
- Views: 159
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.
- Sun Feb 28, 2021 11:27 am
- Forum: Talking LiveCode
- Topic: Lost or slow messages resulting in partial redraw of card.
- Replies: 4
- Views: 159
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...
- Sun Feb 28, 2021 10:26 am
- Forum: Talking LiveCode
- Topic: Lost or slow messages resulting in partial redraw of card.
- Replies: 4
- Views: 159
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...
- Sat Feb 27, 2021 4:28 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Sort multidimensional array
- Replies: 70
- Views: 4747
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...
- Tue Dec 01, 2020 7:09 pm
- Forum: Mac OS
- Topic: File rename command and issue with privileges
- Replies: 2
- Views: 614
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...
- Tue Nov 24, 2020 9:26 am
- Forum: Talking LiveCode
- Topic: Identifying words in camel case phrases
- Replies: 17
- Views: 1741
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...
- Mon Nov 23, 2020 10:10 pm
- Forum: Talking LiveCode
- Topic: Identifying words in camel case phrases
- Replies: 17
- Views: 1741
Re: Identifying words in camel case phrases
Great stuff - so I'm in a new gang - the living fossils! I love your variable names - have you ever worked in cryptology - fDICEDCARROTS, LYNE ?!!! Thanks for the stack and reminding me of codepoints - bloody UTF almost as bad as XML and CSV. (There, that will start a fight). Craig - yes I already h...
- Mon Nov 23, 2020 7:29 pm
- Forum: Talking LiveCode
- Topic: Identifying words in camel case phrases
- Replies: 17
- Views: 1741
Re: Identifying words in camel case phrases
OK I surrender..... Yes the filenames exist and use camel case so the problem is finding the word boundaries. I was hoping for a command that could be used in a statement like "if char n is a capital then..." but fear I will have to resort to ascii values. And yes my file names are mostly in English...
- Mon Nov 23, 2020 7:26 pm
- Forum: Talking LiveCode
- Topic: Identifying words in camel case phrases
- Replies: 17
- Views: 1741
Re: Identifying words in camel case phrases
OK I surrender..... Yes the filenames exist and use camel case so the problem is finding the word boundaries. I was hoping for a command that could be used in a statement like "if char n is a capital then..." but fear I will have to resort to ascii values. And yes my file names are mostly in English...
- Mon Nov 23, 2020 5:53 pm
- Forum: Talking LiveCode
- Topic: Identifying words in camel case phrases
- Replies: 17
- Views: 1741
Identifying words in camel case phrases
Hi, I wish to changes some file names from camel case to delimited words e.g. MyGreatLivecodeProject.livecode changes to My-Great-Livecode-Project.livecode The only method that I can see having looked in the dictionary is to examine the Ascii character values and use the comparison that if greater t...