| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1098 人关注过本帖
标题:求助 怎样把这个Delphi代码修改成VB.net代码
只看楼主 加入收藏
shqmvod
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-10-10
收藏
 问题点数:0 回复次数:1 
求助 怎样把这个Delphi代码修改成VB.net代码
procedure TERP.Button1Click(Sender: TObject);
var
  s: string;
  i: integer;
begin
  edit2.Text := '';
  s := edit1.Text;
  for i := 1 to length(s) do
  begin
  {  if i<>length(s) then
      edit2.Text := edit2.Text+inttostr(strtoint('$'+inttostr((StrToInt('$'+s[i])+StrToInt('$'+s[i+1])+i+8))) mod StrToInt('$'+'A'))
    else
      edit2.Text := edit2.Text+inttostr(strtoint('$'+inttostr((StrToInt('$'+s[i])+StrToInt('$'+s[1])+i+8))) mod StrToInt('$'+'A')); }
    if i <> length(s) then
      edit2.Text := edit2.Text+inttostr(((strtoint('$'+inttohex(ord(s[i]),2))+strtoint('$'+inttohex(ord(s[i+1]),2))+i+8) mod StrToInt('$'+'A')))
    else
      edit2.Text := edit2.Text+inttostr(((strtoint('$'+inttohex(ord(s[i]),2))+strtoint('$'+inttohex(ord(s[1]),2))+i+8) mod StrToInt('$'+'A')));
  end;
end;
搜索更多相关主题的帖子: Delphi 代码 
2008-10-10 12:09
winorange
Rank: 1
来 自:浙江宁波
等 级:新手上路
威 望:1
帖 子:136
专家分:0
注 册:2008-3-29
收藏
得分:0 

处处尽力尽快,一切顺其自然。
2008-10-11 08:34
快速回复:求助 怎样把这个Delphi代码修改成VB.net代码
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010926 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved