Declear the TrString on the global variant part of form1. And in the form2, use the unit of form1. and now, you can use the TrString in the Form2.

解决方案 »

  1.   

    Declear the TrString on the global variant part of form1. And in the form2, use the unit of form1. and now, you can use the TrString in the Form2.
      

  2.   

    一:将TrString说明为全局变量.
    二:在From2中生成GetTrString过程,用它返回TrSting.
      

  3.   

    你只要用这样来调用变量即可form.var
      

  4.   

    在form1的public里定义变量str:string;
    在form2里任何地方都可以通过form1.str操作它。
      

  5.   

    flyby:
        我按照你的方法去设置,虽然在form2中可以使用了,但是在form1中赋的值却传递不到form2中,这是何原因,请指教!