声明为:function FormatDateTime(const Format: string; DateTime: TDateTime): string;overload;返回值是一种格式化后的字符串,重点来看Format参数中的指令字符c 以短时间格式显示时间,即全部是数字的表示FormatdateTime('c',now);输出为:2004-8-7 9:55:40d 对应于时间中的日期,日
获取默认打印机名:function TForm1.GetDefaultPrinterName: string; var iSize: Integer; sIniFile, sSection, sKeyName: PChar; begin iSize :=&n
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号