09-23-2020, 11:19 PM
Macro Macro11
I am having a bit of trouble to reproduce the issue, so I just copy and paste the output of GetQmItemsInFolder.
When attempting to output the contents of '\test1' which is a folder in the root of the qm itemslist, I get this output
\______FUNCTIONS\regex, find, replace\RegexMenu\test_and_info_and_basescripts\sub2
\test1\sub2\test1@
\______FUNCTIONS\dlg_functions\inputfield_validation_functions\__OLD\other_temporary_testversions\test2
\test1\sub2\test1@\test2\Macro8
\test1\sub2\test1@\test2\Macro3
\test1\sub3
\test1\sub3\test3
The bold blue paths are paths outside '\test1' which I do not want (I suspect it could be something to to do with \test in the bold paths (?))
When I look in the help file I see that GetQmItemsInFolder also accepts +id , when I try an integer or integer stored in an variant or string GetQmItemsInFolder errors.
ROOT
|
|
|--test1 <========= need contents of this folder
| |
| |-...
| |-...
|
|
|--______FUNCTIONS <====== BUT some items of within this folder also get's included in 'a[]'
| |
| |
| |- ...
| |- ...
| |- ...
My questions
1. Am I using GetQmItemsInFolder incorrectly?
2. What is +id and how do I use it? (I assume using the id of 'test1' of in stead of 'test1' itself might constrain the results within 'test1')
QMITEM q
str p="\test1"
str s
ARRAY(QMITEMIDLEVEL) a; int i
if(!GetQmItemsInFolder(p &a)) end "failed"
for i 0 a.len
,_i=a[i].id
,qmitem(_i 0 &q 1|8)
,GetQmItemPath q.name s
,out s
I am having a bit of trouble to reproduce the issue, so I just copy and paste the output of GetQmItemsInFolder.
When attempting to output the contents of '\test1' which is a folder in the root of the qm itemslist, I get this output
\______FUNCTIONS\regex, find, replace\RegexMenu\test_and_info_and_basescripts\sub2
\test1\sub2\test1@
\______FUNCTIONS\dlg_functions\inputfield_validation_functions\__OLD\other_temporary_testversions\test2
\test1\sub2\test1@\test2\Macro8
\test1\sub2\test1@\test2\Macro3
\test1\sub3
\test1\sub3\test3
The bold blue paths are paths outside '\test1' which I do not want (I suspect it could be something to to do with \test in the bold paths (?))
When I look in the help file I see that GetQmItemsInFolder also accepts +id , when I try an integer or integer stored in an variant or string GetQmItemsInFolder errors.
ROOT
|
|
|--test1 <========= need contents of this folder
| |
| |-...
| |-...
|
|
|--______FUNCTIONS <====== BUT some items of within this folder also get's included in 'a[]'
| |
| |
| |- ...
| |- ...
| |- ...
My questions
1. Am I using GetQmItemsInFolder incorrectly?
2. What is +id and how do I use it? (I assume using the id of 'test1' of in stead of 'test1' itself might constrain the results within 'test1')