Button.Caption:='abcd'; ///Write
ShowMessage(Button.Caption);////Read

解决方案 »

  1.   

    当为属性赋值时,调用Write,
    取属性值时,调用READ;
    对TEdit控件为例:
    var
    s:string;
    begin
     s:=Edit1.Text;//调用Edit1的Read;
     Edit2.Text:=s;//调用Edit2的Write;
    end;
      

  2.   

    请问edit控件中,在编辑框里输入内容.好像并不触发write 或read,为什么会这样?
      

  3.   

    .....
    precude  a  (sender);
      var 
       s: string
       r:string 
      begin 
       s:= label1.caption ; //read
       r:= s;
       label2.caption := r; // write;
      end;
     凭自己的想象吧