上一页 1 ··· 13 14 15 16 17
摘要: 1.String转化成PChar例:var str: string; pStr:PChar;...pStr := PChar(str);2.PChar转String例:varpStr:PChar; str:string;...str := strPas(pStr); 阅读全文
posted @ 2010-09-28 11:21 sunjun0427 阅读(6487) 评论(0) 推荐(0) 编辑
摘要: listbox1.Items.IndexOf('重复的字符')= -1 表示没有重复 阅读全文
posted @ 2010-09-28 11:20 sunjun0427 阅读(668) 评论(0) 推荐(0) 编辑
摘要: for i:=1 to stringgrid.rowcount do for j:=1 to stringgrid.colcount do stringgrid.cells[j-1,i-1]:=''; 阅读全文
posted @ 2010-09-28 11:20 sunjun0427 阅读(4873) 评论(0) 推荐(0) 编辑
摘要: delphi编程修改ProgressBar的颜色关键代码如下:usesCommCtrl;procedure TForm1.Button1Click(Sender: TObject);begin// Set the Background color to tealProgressbar1.Brush.Color := clTeal;// Set bar color to yellowSendMess... 阅读全文
posted @ 2010-09-28 11:18 sunjun0427 阅读(2223) 评论(0) 推荐(0) 编辑
摘要: uses WinSock; function LocalIP: String; type TaPInAddr = Array[0..10] of PInAddr; PaPInAddr = ^TaPInAddr; var phe: PHostEnt; pptr: PaPInAddr; Buffer: Array[0..63] of AnsiChar; i: ... 阅读全文
posted @ 2010-09-28 11:17 sunjun0427 阅读(544) 评论(0) 推荐(0) 编辑
摘要: with adoquery dobeginclose;sql.clear;sql.text:=' insert into test (FieldName) values (:FieldName) ';Parameters.ParamByName('FiledName').Value := UTF8Encode('中文(简体/繁體)');ExecSQL;end; 阅读全文
posted @ 2010-09-28 11:16 sunjun0427 阅读(1627) 评论(0) 推荐(0) 编辑
摘要: ShellExecute的各种用法一、利用系统默认的邮件收发器发送电子邮件Uses..., ShellAPI;VarlpHwnd: HWND;lpOperation, lpFile, lpParameters, lpDirectory: String;BeginlpHwnd:= GetDesktopWindow();lpOperation:= 'open';lpFile:= 'mailto:' +... 阅读全文
posted @ 2010-09-28 11:03 sunjun0427 阅读(3296) 评论(0) 推荐(0) 编辑
摘要: 对于通过Byte数组进行文件操作的,在FTP中经常会使用到,我也是在Delphi调用Web Service进行文件的上传和下载时找到这两个函数的,挺好用的,推荐给大家。(申明:非本人所写)1. 将Byte数组生成文件procedure ByteArrayToFile(const ByteArray : TByteDynArray; const FileName : string );varCoun... 阅读全文
posted @ 2010-09-28 10:58 sunjun0427 阅读(2706) 评论(0) 推荐(1) 编辑
摘要: { No.1 判断逻辑类型 }var B: Boolean;beginB := Boolean(2); //这样只是为了调试//B := True;if B = True then ShowMessage('B = True'); //不建议//不安全///////if B then ShowMessage('B'); //建议//简短end;var B: Boolean;beginif Edit... 阅读全文
posted @ 2010-09-27 09:56 sunjun0427 阅读(502) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17