Inet1.Execute "ftp://hercousa:[email protected]", "SEND D:\joe\work\Procedure\index.htm wwwRoot\index.htm"
Inet1.Execute "ftp://hercousa:[email protected]", "SEND D:\joe\work\Procedure\page1.htm wwwRoot\page1.htm" Inet1它是异步传输的,我这样才能使Inet1上传完了第一句的,再上传第二句呢 上传代码
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim vtData As Variant '数据变量。
Select Case State
'...没有给出其它情况。
Case 1
Me.Label8.Caption = "is looking"
Case 2
Me.Label8.Caption = "success finding "
Case 3
Me.Label8.Caption = "is connecting"
Case 4
Me.Label8.Caption = "success connected"
Case 5
Me.Label8.Caption = "is sending request"
Case 6
Me.Label8.Caption = "sucess sending"
Case 7
Me.Label8.Caption = "is receiving"
Case 8
Me.Label8.Caption = "success receive"
Case 9
Me.Label8.Caption = "is disconnecting"
Case 10
Me.Label8.Caption = "success disconnect"
Case 11
Me.Label8.Caption = "is error"
Case icResponseCompleted '12
Text4.Text = ""
Me.Label8.Caption = "success receive data"
Text4.Text = Text4.Text + vPartData
vPartData = Inet1.GetChunk(1024, icString)
Do While LenB(vPartData) > 0
Text4.Text = Text4.Text + vPartData
vPartData = Inet1.GetChunk(1024, icString)
Loop
Text4.Text = Text4.Text + vPartData Text4.SelStart = Len(Text4.Text)
End Select
End Sub
Inet1.Execute "ftp://hercousa:[email protected]", "SEND D:\joe\work\Procedure\page1.htm wwwRoot\page1.htm" Inet1它是异步传输的,我这样才能使Inet1上传完了第一句的,再上传第二句呢 上传代码
Private Sub Inet1_StateChanged(ByVal State As Integer)
Dim vtData As Variant '数据变量。
Select Case State
'...没有给出其它情况。
Case 1
Me.Label8.Caption = "is looking"
Case 2
Me.Label8.Caption = "success finding "
Case 3
Me.Label8.Caption = "is connecting"
Case 4
Me.Label8.Caption = "success connected"
Case 5
Me.Label8.Caption = "is sending request"
Case 6
Me.Label8.Caption = "sucess sending"
Case 7
Me.Label8.Caption = "is receiving"
Case 8
Me.Label8.Caption = "success receive"
Case 9
Me.Label8.Caption = "is disconnecting"
Case 10
Me.Label8.Caption = "success disconnect"
Case 11
Me.Label8.Caption = "is error"
Case icResponseCompleted '12
Text4.Text = ""
Me.Label8.Caption = "success receive data"
Text4.Text = Text4.Text + vPartData
vPartData = Inet1.GetChunk(1024, icString)
Do While LenB(vPartData) > 0
Text4.Text = Text4.Text + vPartData
vPartData = Inet1.GetChunk(1024, icString)
Loop
Text4.Text = Text4.Text + vPartData Text4.SelStart = Len(Text4.Text)
End Select
End Sub
解决方案 »
- 分享VB调用VC++写的dll文件,返回字符串
- 求助:对QQ窗口的判断
- 如何仅对 Recordset 中的集合进行新增、编辑、删除操作而不管数据库?
- 怎样在程序中改变datagrid的背景色
- 怎样通过wininet.dll通过服务器的asp上传文件
- TextBox的 Change事件对应的Windows消息是哪一个?(在线等,立即结贴)
- VB6如何调试ActiveX DLL
- 怎样控制Treeview的行间距?
- 现在谁还用VB编程啊
- 菜鸟问题,怎样用Inet控件下载FTP文件?
- 如何对控件进行全局子类化,也就是对所有的控件实例子类化?
- 我想实现当在目录窗口或资源管理器中选中文件时,得到此文件的文件名.和路径名
DoEvents
LoopInet1.Execute "ftp://hercousa:[email protected]", "SEND D:\joe\work\Procedure\page1.htm wwwRoot\page1.htm"