newitem, folder parameter start with '\'

newitem, folder parameter start with '\'

Postby r0n on Sun Mar 09, 2014 10:35 am

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:

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     ?
str s="test"
newitem("temp_file_text" s "" "" "\testfolder" 0)



My apologies if it is not a bug.
r0n
Active Member
 
Posts: 500
Joined: Tue Jul 24, 2012 5:47 am

Re: newitem, folder parameter start with '\'

Postby Gintaras on Sun Mar 09, 2014 10:52 am

If folder not exist, it will always create the new folder.

It is a bug. Will fix in next QM.
Thank you.
Gintaras
Site Admin
 
Posts: 10412
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest