回上楼,我要改这个 Dim conn As New ADODB.Connection dim ip ip="116.28.49.177" conn.Open "PROVIDER=SQLOLEDB;DATA SOURCE=ip;USER ID=sa;PASSWORD=123456;DATABASE=data;"
我想把word另存为xml之后,用vb读取这个xml的内容,请问如何实现? dim f as integer dim b() as byte dim s as string dim L as long f=freefile() open "abc.xml" for binary access read as #f ......
Private Sub Command1_Click() Dim MyString() As String Open "a.xml" For Binary As #1 ' 打开刚创建的文件。 ReDim MyString(LOF(1) - 1) Put #1, , MyRecord ' 读入所有字符到变量中 ......