先将字符串拆成一个个字符(COPY函数),然后取ASCII值,好象没有现成的函数
解决方案 »
- delphi 如何 动态定义变量
- DBGrid即时检查录入资料的正确性?
- 关于Wise Installation System 9.02的问题
- 数据库连接池的问题,请大家帮忙,
- setLength可以执行好几次吗?
- 怎样将只读属性的文件改为可读写?
- 菜鸟提问:关于 Tmain_menu 的??急!
- 希望大家推荐几本DELPHI入门书籍 谢谢
- 使用TRegistry要有啥前提吗?我怎么编译不通过阿?
- not Query1.IsEmpty = not (Query1.Eof and Query1.Bof) ??
- 寻找比Delphi6中ActionManger的更好的控件
- 我的COM问题!!!请大家帮忙
for i := 1 to Length(str) do
a := a + Ord(str[i]);
// now a is the result
sum:=0;
for i:=1 to length(str) do
begin
sum:=sum+ord(str[i]);
end;
for i := 1 to Length(str) do
a := a + Ord(str[i]);
// now a is the result
for I:=0 to Length(Str) do
AscSum:=AscSum+Ord(Str[I]);
str:string;
i,j,sum: integer;
begin
str:= 'string';
i:=0;
sum:= 0;
j:=length(str);
for i :=0 to j do
begin
sum:=sum+ ord( str[i])
end;end;