Forum > Databases
TDBEdit displays (MEMO) instead of original value
@VladislavL:
How to correct this behavior?
dseligo:
In you select statement do this for column that behaves like this in dbedit:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---SQL.Text := 'select ..., cast(your_column as varchar(50)) as your_column, ... '
Zvoni:
--- Quote from: @VladislavL on March 16, 2023, 10:10:26 am ---How to correct this behavior?
--- End quote ---
By searching the Forum first....
i think this question has been asked and answered at least 5 times in the last two years
JanRoza:
Why use tDbEdit on a memo field, use tDbMemo instead.
@VladislavL:
--- Quote from: dseligo on March 17, 2023, 12:20:02 pm ---In you select statement do this for column that behaves like this in dbedit:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---SQL.Text := 'select ..., cast(your_column as varchar(50)) as your_column, ... '
--- End quote ---
Thanks, I'll try.
Navigation
[0] Message Index
[#] Next page