memo2.Clear;
memo2.lines[0]:='发电煤耗='+floattostr(FDMHL);
memo2.lines[1]:='厂用电率='+floattostr(CYDL_s);
memo2.lines[2]:='供电煤耗='+floattostr(GDMHL);
memo2.lines[3]:='汽耗='+floattostr(QH);
memo2.lines[4]:='汽轮机效率='+floattostr(JZNXL*100);
memo2.lines[5]:='热耗='+floattostr(JZRH);
memo2.lines[6]:='锅炉效率='+floattostr(glxl_s*100);
在运行后,为什么只显示第一行,即
发电煤耗=302.34432
而其他的都不显示。
memo2.lines[0]:='发电煤耗='+floattostr(FDMHL);
memo2.lines[1]:='厂用电率='+floattostr(CYDL_s);
memo2.lines[2]:='供电煤耗='+floattostr(GDMHL);
memo2.lines[3]:='汽耗='+floattostr(QH);
memo2.lines[4]:='汽轮机效率='+floattostr(JZNXL*100);
memo2.lines[5]:='热耗='+floattostr(JZRH);
memo2.lines[6]:='锅炉效率='+floattostr(glxl_s*100);
在运行后,为什么只显示第一行,即
发电煤耗=302.34432
而其他的都不显示。
的形式!
---------------------------------
http://kmok.cn/
memo2.Clear;
memo2.lines[0]:='发电煤耗='+floattostr(FDMHL);
memo2.lines[1]:='厂用电率='+floattostr(CYDL_s);
memo2.lines[2]:='供电煤耗='+floattostr(GDMHL);
memo2.lines[3]:='汽耗='+floattostr(QH);
memo2.lines[4]:='汽轮机效率='+floattostr(JZNXL*100);
memo2.lines[5]:='热耗='+floattostr(JZRH);
memo2.lines[6]:='锅炉效率='+floattostr(glxl_s*100);
都没有问题,但这次就是不行,
用
memo2.lines.add('发电煤耗='+floattostr(FDMHL));
memo2.lines.add('厂用电率='+floattostr(CYDL_s));
memo2.lines.add('供电煤耗='+floattostr(GDMHL));
memo2.lines.add('汽耗='+floattostr(QH));
memo2.lines.add('锅炉效率='+floattostr(glxl_s*100));
memo2.lines.add('厂用电率='+floattostr(CYDL_s));
也不能全部显示,不知为什么?
memo1.text:=memo1.text+#13#10+newstring1;
memo1.text:=memo1.text+#13#10+newstring2;
再试下肯定行