将一个数组转化成一个字符串
解决方案 »
- Delphi7和Delphi2009哪个好用一些,尤其是底层开发。
- 开了几个线程,因为每个线程又事没事都在循环,CPU的利用率一下就是100%,各位都是用什么方法解决的啊?
- 大家帮忙?怎样将一个加密的word文件读入RichEdit中?大家救我~~~~~~~~~
- 在dbgrid里显示一个数字字段的合计数,采用的是union方法,为什么老是提示:参数不足
- 如何得到数据库里满足条件的记录中当前的记录位置是第几条?
- 關於使用ADOQuery控件插入日期型數據的問題,100分!!!!
- TIdSMTP控件发邮件的问题!发言就送分!快来拿分吧!
- 如何对ListView的指定行列内容进行修改?
- fcTreeView 保存节点的问题
- 散分 关于 Delphi IDE 编译选项
- RunTime Error 错误怎么解决????仅有的分数全给!!!!
- 如何用鼠标右键选中TTreeView控件中的节点?
var a:array[0..10] of char;
b:string;
begin
a:='12345';
b:=a;
ShowMessage(b);
end;
iArr : Array[1..5] of Integer;
iIndex : Integer;
begin
// 初始化
for iIndex := Low(iArr) to High(iArr) do
iArr[iIndex] := iIndex;
for iIndex := Low(iArr) to High(iArr) do
Label1.Caption := Label1.Caption + IntToStr(iArr[iIndex]);
end;
b:string;
begin
a:='';
b:='0123456789';
strPCopy(a,b);
showMessage(b);
b :='';
b := String(a);
ShowMessage(b);
end;
begin
{ SetLength(Result, Length(A));
Move(A[0],Result[1],Length(A));}
//或
Result:=PChar(@A[0]);
end;
var
recstr:array of byte;
str:string;
index:integer;
begin
if mscomm1.CommEvent=2 then
begin
recstr:=mscomm1.Input;
for index:=low(recstr) to high(recstr) do
begin
str:= str+inttohex(recstr[index],2);
end;
RealTimeMsg.Text:=RealTimeMsg.Text+' '+str;
end;
end;