function StrPas(const Str: PChar): string;
是DELPHI的一个函数
是DELPHI的一个函数
解决方案 »
- Ultraedit能使Delphi源码语法highlight吗?
- 学习delphi的迷茫
- 急啊,在delphi中如何用SQL语句彻底删除.dbf(VFP)表中的所有记录?
- 请问Delphi+Oracle9中,怎样将SqlServer表中的图片转储到Oracle一个表中?
- 在线等待,请问:现在生成了delphi 的可执行文件,在delphi的哪个文件里才能找到此可执行文件的生成路径那?
- 关于Tadoconnection.create(self)的问题
- dbgrid与本地*.db表中记录集相对应,要求单击dbgrid时记录集按排列升序(降序)
- 急!!!关于TStringGrid的问题。
- 修改代码
- 一个combobox的简单问题
- 不是说delphi 支持动画吗,我做了gif 动画却发现image根本不支持gif 格式
- DELPHI6写完了程序,用什么做安装程序??
var
S:String;
BS:Array of Byte;
I:integer;
begin
S:='123456789';
SetLength(Bs,Length(S));
for I:=0 to length(S) do begin
BS[I]:=StrToInt(Copy(S,I,1));
end;
end;
是DELPHI的一个函数
procedure TForm1.Button1Click(Sender: TObject);
var
S:String;
BS:Array of Byte;
I:integer;
C:PChar;
begin
S:='abcde';
New(C);
SetLength(Bs,Length(S));
try
for I:=0 to length(S) do begin
StrPCopy(C,Copy(S,I+1,1));
BS[I]:=Ord(C^);
end;
finally
Dispose(C);
end;
For I:=Low(BS) to High(BS) do begin
ShowMessage(Char(BS[I]));
end;
end;
b: array [0..100] of Byte
Move(PChar(Str)^, @b[0], count)
在Delphi3的时代,String中第一个Byte中放的是String的长度,但现在好象已不是了,我不知道你说的是什么意思,可能是我的水平不高吧,不过我第二次发的程序执行是正确的,请指点!