Hi,
I want to copy a query object without overwriting the reference. Is there a way to achive this?
There is a method which has a query as parameter. In the method I got a second query. Now I want to overwrite the passed query with the second query so it also changes in the caller method.
query q;
void test(Query _query)
{
Query q2 = new Query();
q2.addDataSource(tableNum(SalesTable));
// ??? here should be the logic that copies the query from q2 to _query
}
q = new Query();
q.addDataSource(tableNum(InventTable));
test(q);
// I want to have q2 available here in object q
*This post is locked for comments
I have the same question (0)