回复 10楼 lowxiong
GTL.zip
(14.74 KB)
好的。谢谢。就一个文本,一行语句。我上传了这个文本和BAR TENDER的一个标签格式。BAR TENDER的这个标签格式的数据源就是这个文本里的内容。
Dim A Private Sub Form_Load() A = Split("19JUN2013★00241CBX★9 KG★60★13347455★UN★528189555★000008333★[)>0613347455601JUN528189555000008333 BOKLT3215★4000010410★4★★★★★★★★★END", "★", -1, 1) End Sub Private Sub Command1_Click() A(0) = Text1 A(1) = Text2 A(2) = Text3 A(3) = Text4 A(4) = Text5 A(5) = Text6 A(6) = Text7 A(7) = Text8 A(8) = Text9 A(9) = Text10 A(10) = Text11 Dim s As String s = A(0) & "★" & A(1) & "★" & A(2) & " KG" & "★" & A(3) & "★" & A(4) & "★" & A(5) & "★" & A(6) & "★" & A(7) & "★" & A(8) & "★" & A(9) & "★" & A(10) & "★" Open "d:\2.txt" For Output As #1 Print #1, s End Sub 刚才用最笨的方法写了一下,就是运行的时候,第二次点击COMMAND时报错,文件已打开。