关于取错误代码问题?谢谢各位参与!!!
这是VB中的一段程序:
Private Sub 身份认证_验证动态口令_Btn_Click()
On Error Resume Next
Dim ResponseID As String '响应码
Dim Identifier As String 'CTL标识
ResponseID = Text2.Text
Identifier = TextIdentifier.Text
Dim ObjLogonAuth_S As New SKYNETPKICOM.LogonAuth
ObjLogonAuth_S.Identifier = Identifier '指定CTL标识
'验证动态口令登录,证书和信任列表
ObjLogonAuth_S.Auth _
ResponseID, 3
If Err.Number <> 0 Then
MsgBox "动态口令验证失败!Error = " & Hex(Err), vbCritical, "失败"
Exit Sub
Else
MsgBox "动态口令验证成功!", vbInformation, "成功"
End If
SpecInfoText.Text = ObjLogonAuth_S.SpecInfo
End Sub
在DELPHI中,错误代码怎么取呢?VB中是:On Error Resume Next......
if Err.Number<>0 then.....
而在DELPHI中怎么做呢?
希望各位能给点帮助,谢谢!!!