Question
Passing one row of a query to a function
I want to pass a query into a function one row at a time in
the same way you could pass an array to a function one row at a
time. I've read that queries are just CF structures under the hood
so I believe it should be possible. I just don't know the syntax to
reference a single query row (and all it's variables).
I don't want to pass the whole query to the variable because I would like to do the looping outside the function. The idea is to simplify and standardize the formatting and arrangement of several variables (columns) in a UDF and keep the syntax to use the function simple. Therefore, I'd like to avoid having to do stuff like convert the query to an array. That would defeat the goal of keeping it simple.
Thanks
Magnus
I don't want to pass the whole query to the variable because I would like to do the looping outside the function. The idea is to simplify and standardize the formatting and arrangement of several variables (columns) in a UDF and keep the syntax to use the function simple. Therefore, I'd like to avoid having to do stuff like convert the query to an array. That would defeat the goal of keeping it simple.
Thanks
Magnus
