Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
newitem, folder parameter start with '\'
#1
I do not know if this is an undocumented feature or bug
I wanted to use the newitem command.

The folder parameter is as follows:

Quote:folder - name or id of folder where new item must be created.

Also creates the folder if does not exist.
Can be full path, like "\Folder\Subfolder".
If omitted or "", creates not in a folder.

It does not state that if you use with a leading backslash "\Folder\Subfolder" it will try to create in existing folder, if exist.
If folder not exist, it will always create the new folder.

If you do not begin with a backslash it will always create the folder.

The testcode I used:

Macro Macro43
Code:
Copy      Help
str s="test"
newitem("temp_file_text" s "" "" "\testfolder" 0)


My apologies if it is not a bug.
#2
Quote:If folder not exist, it will always create the new folder.
It is a bug. Will fix in next QM.
Thank you.


Forum Jump:


Users browsing this thread: 1 Guest(s)