limelect 48 Posted August 4, 2023 (edited) I have FdTable and database grid For the fields NOT to show WIDEMEMO but the real value I have to change at RUN TIME DispalyValue=dvFull if FDTable1.Fields.DataType=ftWideMemo then ??? if field kind is string then change field DispalyValue to dvFull Help on above 2 statements Any help? P.S. It seems I have to work with the BLOB? Edited August 4, 2023 by limelect Share this post Link to post
Uwe Raabe 2064 Posted August 4, 2023 I'm sorry, but I have no clue what you are talking about. Share this post Link to post
Lajos Juhász 295 Posted August 4, 2023 I cannot fully understand the question either. My bet is that the TDBgrid for blob fields instead of the value displays (Memo). In order to correct that a solution is to use the OnGetText event of the TMemoField/TWideMemoField: Quote procedure TForm3.FDQuery1MyMemoFieldGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin if DisplayText then Text:=Sender.AsString; end; Share this post Link to post
limelect 48 Posted August 4, 2023 (edited) Ok sorry, I will explain further. Dblclick fdtable you get field editor. Adding a field you get its property. In the property you have displayvalue=dvfull. <<<<< I need that at runtime. Hop that has clarified Otherwise, you have WIDEMEMO shown Edited August 4, 2023 by limelect Share this post Link to post
limelect 48 Posted August 4, 2023 (edited) Fixed some times i get old if TBlobField(FDTable1.FieldByName (FDTable1.Fields.FieldName)).BlobType =ftWideMemo then TBlobField(FDTable1.FieldByName (FDTable1.Fields.FieldName)).DisplayValue:=dvFull; in the fields, the HTML does not like I with [] Edited August 4, 2023 by limelect Share this post Link to post