Memo.lines问题只要  Memo.lines 显示一行数据Label.Caption := '成功 :' + inttostr(S);这样的代码怎么写。类似与统计。  谢谢

解决方案 »

  1.   

    只要 Memo.lines 收到一行数据  
    那么 
    Label.Caption := '成功 :' + inttostr(S);这样的代码怎么写。类似与统计。 谢谢
      

  2.   

    Memo.lines.Add('成功 :' + inttostr(S));
      

  3.   

    Memo.lines 显示一行数据这句怎么写呢。具体点的代码
      

  4.   

    if memo.lines.count=1 then
    label......
      

  5.   

    memo的onChange事件/或者你的数据接收事件:if memo.lines.count>0 then
    Label.Caption := '成功 :' + inttostr(S);
      

  6.   

    if memo.lines.count<>0 then
    Label.Caption := '成功 :' + inttostr(S);
      

  7.   

    memo.lines  首先要统计出这个控件中有多少行,再通过TIME控件
    加入“偱环”读取时再Label.Caption := '成功 :' + inttostr(S);即可
      

  8.   

    不太明白楼主的意思,如果是只要 Memo 中有了一行数据,就立即显示 Label.caption := '' 的话,就在 Memo.OnChange 事件中写代码
      

  9.   

    var i;//行数begin
       i:=() //初值
        if memo.line.count > i then
           Label1.caption:= .....;
       i:=  memo.line.count;
    end;