procedure TForm2.saveDfm; var inStream,outStream:TMemoryStream; begin inStream:=TMemoryStream.Create; outStream:=TMemoryStream.Create; try inStream.WriteComponent(self); inStream.Position:=0; ObjectBinaryToText(inStream,outStream); outStream.Position:=0; outStream.SaveToFile('c.txt'); finally FreeAndNil(inStream); FreeAndNil(outStream); end; end;
相关文章
- 02-19delphi save .dfm to .txt
- 02-191、Delphi 打开目录和txt文件模块
- 02-19delphi save .dfm to .txt
- 02-19Delphi中把字符串存储成各种编码的txt文档
- 02-19问题-delphi XE2 Stack Overflow- save your work and restart CodeGear
- 02-19Delphi txt文件读取及写入
- 02-19save a web page as a single file (mht format) using Delphi code
- 02-19Delphi 快速读取TXT 指定行的数据
- 02-19Delphi 提取TXT中的Email 数据
- 02-19虚拟机CentOS7开机报错:you might must to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot