- UID
- 7321
注册时间2006-1-20
阅读权限20
最后登录1970-1-1
以武会友
TA的每日心情 | 开心 2019-10-21 20:32 |
---|
签到天数: 3 天 [LV.2]偶尔看看I
|
楼主 |
发表于 2008-11-6 08:43:26
|
显示全部楼层
源代码如下:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
If IsNumeric(Text1.Text) = False And Len(Text1.Text) <> 0 Then
MsgBox "顾客号为数字组成!", 48, "提示"
Else
If Len(Text1.Text) = 0 Then
MsgBox "用户名不能为空!", 48, "提示"
Else
strtmp = Text1.Text
a = CLng(Text1.Text)
b = a Xor &H30D8BCC0
Text2.Text = b
End If
End If
End Sub
Private Sub Label4_Click()
Call ShellExecute(Form1.hWnd, "open", "https://www.chinapyg.com", vbNullString, vbNullString, &H0)
End Sub
请各位指教,是否是数据类型定义错误或其他都有错,望指教! |
评分
-
查看全部评分
|