Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
moving QM folder to New Folder
#1
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
Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)