cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use saved queries in scripts/Macro

hdrapin
Super Contributor

Hello,

 

What is th best way to use saved QUERY in scripts/Macro ? I've found this document http://community.mega.com/t5/Technical-Product/HOW-TO-Use-queries-with-variables-in-APIs/m-p/1481#M2...

 

But is there a way to get in a collection the result from a query ? I means a better way in regards of performance...

 

Many thanks

 

 

 

1 Reply

jhorber
MEGA
MEGA

Hello hdrapin

 

I am not sure to understand your question

In the example you quote, BPCol is a Collection

 

'collection is created'

vSel.ExecuteSel vParmList BPCol

 

'collection can be browsed
For Each oBP in BPCol
   Print oBP.Name
Next

Jerome