Search found 7 matches

by theowright2020
Wed Jan 22, 2020 7:03 pm
Forum: Talking LiveCode
Topic: How to split a folder structure into an array with sub arrays?
Replies: 11
Views: 11365

Re: How to split a folder structure into an array with sub arrays?

Apologies for the poor code post

It won't let me post an external URL but it's the livecode files and folders part 2 tutorial


Thanks
by theowright2020
Wed Jan 22, 2020 6:04 pm
Forum: Talking LiveCode
Topic: How to split a folder structure into an array with sub arrays?
Replies: 11
Views: 11365

Re: How to split a folder structure into an array with sub arrays?

the list of items Music git_new Boostnote etc. are actually folders, which contain other files and folders within them i am passing them as an array via pFolder into the following code: ' ' ' function listFiles pFolder, pRecurse local tTotalFiles, tCurrentFiles, tFolders set the defaultFolder to pFo...
by theowright2020
Wed Jan 22, 2020 4:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: what is pRecurse
Replies: 2
Views: 3066

what is pRecurse

can anyone clarify what pRecurse would represent as a parameter within a function? ' ' ' # Returns a list of files in a given folder, using recursion to # include files in subfolders if desired. function listFiles pFolder, pRecurse local tTotalFiles, tCurrentFiles, tFolders set the defaultFolder to ...
by theowright2020
Wed Jan 22, 2020 3:20 pm
Forum: Talking LiveCode
Topic: How to split a folder structure into an array with sub arrays?
Replies: 11
Views: 11365

Re: How to split a folder structure into an array with sub arrays?

I have attached a screenshot of how the folder data is pulled in, before it is split into an array

can anyone advise on how to convert this to an array, with it's sub folders converted into sub arrays?
by theowright2020
Wed Jan 22, 2020 1:36 pm
Forum: Talking LiveCode
Topic: How to split a folder structure into an array with sub arrays?
Replies: 11
Views: 11365

How to split a folder structure into an array with sub arrays?

i am trying to populate a tree view with a folder structure chosen from disc

how do i convert the chosen folder structure to an array with its sub folders as sub arrays?

thanks
by theowright2020
Wed Jan 22, 2020 10:47 am
Forum: Talking LiveCode
Topic: How to populate Tree View Widget
Replies: 11
Views: 6789

Re: How to populate Tree View Widget

this is my full command code: command populateView repeat with x = 1 to 4 put random(1000) into tArray[x] end repeat combine tArray using return and tab set the arrayData of widget "treeview" to tArray end populateView it's still not working, I can print out my array in answer fine, just nothing cha...
by theowright2020
Tue Jan 21, 2020 11:57 pm
Forum: Talking LiveCode
Topic: How to populate Tree View Widget
Replies: 11
Views: 6789

How to populate Tree View Widget

Hi I am completely new to Livecode, I am trying to populate a tree view widget using folder structure from disc User chooses the folder I create an array from folder data I have no problem populating a field eg. scrollable list When i try to populate the tree view widget, put arrayData into widget "...