Inbuilt function to convert XResultSet to an variant array

Hello

I would like to know if in basic there is any in-built function in libreoffice basic which can convert a XResultSet to a Variant Array. As you know a similar function is possible in python using:

result= cursor.execute(sql).fetchall()

and also VBA has the

arr= MyRecordSet.GetRows

So would there be anything similar in Basic? Thank you for your assistance