09-05-2014, 12:20 AM
Hi Gintaras,
I would like to move a defined group of QM folders (that contain many many subfolders of functions) into one new folder which will make it easy to export as a single qml. I see how to copy folders and items but thought there may be a "move" function.
Function MoveQmlFolder
This just creates a duplicate folder name but doesn't move the contents.
Does this already exist?
Also, I thought that the newitem function would create the SuperFolderName folder if it didn't exist but the code above would only make the subfolders if I already created it with the first newitem command.
Thanks for any thoughts!!!,
S
I would like to move a defined group of QM folders (that contain many many subfolders of functions) into one new folder which will make it easy to export as a single qml. I see how to copy folders and items but thought there may be a "move" function.
Function MoveQmlFolder
str SuperFolderName = F"New Folder"
newitem FolderName "" "Folder"
str FolderColl=
;Folder1
;Folder2
;Folder3
;Folder4
;Folder5
foreach _s FolderColl
,out _s
,int FolderQmId = qmitem(_s)
,newitem("" "" FolderQmId "" SuperFolderName)
This just creates a duplicate folder name but doesn't move the contents.
Does this already exist?
Also, I thought that the newitem function would create the SuperFolderName folder if it didn't exist but the code above would only make the subfolders if I already created it with the first newitem command.
Thanks for any thoughts!!!,
S