Filtering arrays in BASIC

Hey, is there a way to filter an array using LO BASIC in all LibreOffice applications? The question comes from the need of filtering data across applications without bounding to Calc.

fortunatly youre not bound to poor BASIC…
youre know that python builtin filter can be used in LibreOffice?!

Got it! Thanks for the reply