I am friends with the fastreport relatively recently, but I cannot understand everything .... I need to state the following condition: If text begins with the words "Contract" and the type is "Contract", then it is necessary to delete it in the text "Contract". For all others leave text. The jamb is that in the qTable request there is no select my type field in the selector, and the request cannot be changed (this is in fact connected to the wired function in the database). My procedure:

procedure MasterDataOnBeforePrintType(Sender: TfrxComponent); var text: string; begin text := VarToStr(<qTable."text">); begin if <qType."type">='Договор' then begin if Pos('Договор',<qTable."text">)=0 then TfrxMemoView(Sender).Text := text else begin Delete(text, 1, 8); TfrxMemoView(Sender).Text := text end; end; end; end; 

Question: How to connect data from several queries in one masterdate (bd - qTable)? from one text, count, comment (qTable, id does not output, you cannot even connect) from the second new query, type (qType) to pull out ...

Since the masterdate connects to the qTable, the type is the same for all ...

Or how to pull out i.type from ADO qTable (there is all join), I will even say more even in the function itself there is a condition with i.type ....

  • It's a wired function, so it's not there. did not want to pull it into the table. it is impossible to extend a field in fastreporte if it is not prescribed in selecte. - Evgenia Balabanova

0