query receive value from another query

0

There is a way for one TIBQuery to receive the other TIBQuery. For example:

Query1.Close;
Query1.Open;
Query2 := Query1;
if Query2Valor1.... // segue a lógica
    
asked by anonymous 14.03.2018 / 13:08

1 answer

0

With IB I think it's not possible. With FireDAC it is possible by means of TFDDataSetReference , in which you can pass the data property of one dataset to another as follows: FDQuery2.Data := FDQuery1.Data;

But returning to your reality, you could still pass the TIBQuery content to a ClientDataSet via DataSetProvider . I do not know if it is acceptable for your need, but I rather use this feature mentioned above.

    
14.03.2018 / 13:57