L
lfp
Unregistered / Unconfirmed
GUEST, unregistred user!
如何键下面的VFP6改成DLEPHI?
PROCEDURE JSMM
PARAMETER PW
PW = RIGHT(PW,8)
MM = 0
FOR N = 1 TO LEN(PW)
CH = SUBSTR(PW,N)
MM = MM + ASC(CH) * N * N
ENDFOR
MM = MM + INT(SQRT(MM))
MM = MM * MM - 3
RETURN MM
ENDPROC
谢谢.
PROCEDURE JSMM
PARAMETER PW
PW = RIGHT(PW,8)
MM = 0
FOR N = 1 TO LEN(PW)
CH = SUBSTR(PW,N)
MM = MM + ASC(CH) * N * N
ENDFOR
MM = MM + INT(SQRT(MM))
MM = MM * MM - 3
RETURN MM
ENDPROC
谢谢.