请问如何改变memo中的显示内容,如数据库里该字段为J就显示“进仓”,“C”显示“出仓

解决方案 »

  1.   

    if ... = 'J' then
       memo1.text := '进仓'
    else if ... = 'C' then
            memo1.text := '出仓';
      

  2.   

    在 對應的 dataset 的  字段中的 OnGetText 中處理
      

  3.   

    insert2003,不行啊,text变成空的了,你说的是写在TextEdit里的下面那栏吗?上面那栏要写什么
    我是说fastreport里的阿
      

  4.   

    除了上面兄弟两种方法外,在查询中改一下试试:
    select (case 字段名 when 'j' then '进仓' when 'c' then '出仓' end) as 字段名1