标题:请教PB6.0代码的含义
取消只看楼主
yhhwx
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-12-7
 问题点数:0 回复次数:0 
请教PB6.0代码的含义

long i
long j
long ll
string ls_xkzh


ls_xkzh = trim(parent.sle_1.text)

for i = 1 to 16

if i < 5 then
j = i * 3
end if

if j > 15 then
j = j - 5
end if

ls_xkzh = replace(ls_xkzh,i,1,char(asc(mid(ls_xkzh,i,1)) - j - 16))
next

ll = long(left(ls_xkzh,10))

if right(ls_xkzh,6) <> right(string(ll / 23 - gl_mc),6) or mod(ll,gl_mc) <> 0 or len(ls_xkzh) <> 16 or isnull(ls_xkzh) then
messagebox("","错误!")
parent.ii_serial_times ++

if parent.ii_serial_times > 3 then
halt
end if

return
end if

搜索更多相关主题的帖子: 含义 代码 
2006-12-07 22:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-107992-1-1.html




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

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