P
pardboy
Unregistered / Unconfirmed
GUEST, unregistred user!
我先 info:=tstringlist.Create;
info.Add('shuliang='+memo1.Lines.Text);
info.add('zhiliang='+memo2.Lines.Text);
info.add('jiage='+memo3.Lines.Text);
info.add('fukuan='+memo4.Lines.Text);
info.SaveToFile(ExtractFilePath(application.ExeName)+'biao.txt');
info.Free;
存成文件,然后用的时候再读出来
memo1.Lines.text:=info.Values['shuliang'];
memo2.Lines.Text:=info.Values['zhiliang'];
memo3.Lines.Text:=info.Values['jiage'];
memo4.Lines.Text:=info.Values['fukuan'];
可如果memo里面是多行的时候只读出了一行。。怎么解决这个问题哪????
info.Add('shuliang='+memo1.Lines.Text);
info.add('zhiliang='+memo2.Lines.Text);
info.add('jiage='+memo3.Lines.Text);
info.add('fukuan='+memo4.Lines.Text);
info.SaveToFile(ExtractFilePath(application.ExeName)+'biao.txt');
info.Free;
存成文件,然后用的时候再读出来
memo1.Lines.text:=info.Values['shuliang'];
memo2.Lines.Text:=info.Values['zhiliang'];
memo3.Lines.Text:=info.Values['jiage'];
memo4.Lines.Text:=info.Values['fukuan'];
可如果memo里面是多行的时候只读出了一行。。怎么解决这个问题哪????