| 发表于:2008-01-18 15:22:072楼 得分:0 |
private sub command1_click()'浏览事件 commondialog1.filename = "" commondialog1.filter = "(*.jpg) ¦*.jpg ¦(*.bmp) ¦*.bmp" commondialog1.filterindex = 1 commondialog1.action = 1 if commondialog1.filename <> "" then text16 = commondialog1.filename outputfile = right(commondialog1.filename, len(commondialog1.filename) - instrrev(commondialog1.filename, ".")) command2.enabled = true end if end sub private sub command2_click()‘上传按钮 if text2.text = "" then msgbox "请先输入名字", , "提示" else outputfile = text2.text & "." & outputfile filecopy text16.text, app.path & "\picture\" & outputfile & "" msgbox "上传成功", , "提示" command2.enabled = false end if end sub '--------------------------------由于我是在我的程序中直接复制过来的所以有的地方需要修改 | | |
|