Read From Texf File
Hi everyone i just started adventure with BarTender and i now i just have one problem. How i can read file d:\veryfikacja\export.dat to text box 9. With VBScript i try just somthing but all times somthings wrong :/
And how i can make butto which refresh this box without print of label.
In project of label i have some rubbish.
labelpak.com.pl/materialy/W200229800.btw
Thank's for answer
And how i can make butto which refresh this box without print of label.
In project of label i have some rubbish.
labelpak.com.pl/materialy/W200229800.btw
Thank's for answer
0
-
Legacy Poster
★ BarTender Hero ★
I remake script now read but on second line :/
Someone have any idea ??
labelpak.com.pl/materialy/W200229800(1).btw0 -
Shotaro Ito
★ BarTender Hero ★
Hi Tomasz,
It looks you issue 'MyFile.ReadLine' twice, so it read 2 lines. Use only once.
Like..
[code]
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.OpenTextFile("c:\datafile.txt", ForReading)
ReadLineTextFile = ""
If Not MyFile.AtEndOfStream Then ReadLineTextFile = MyFile.ReadLine
Value = ReadLineTextFile
[/code]
Hope that helps!0 -
Legacy Poster
★ BarTender Hero ★
[size="2"]Thank's [/size][size="2"]I don't notice double read from file :/ Now all is ok with read.
I let me make once more question.
I read value to new object text_9 from file.
And how i can create [/size][size="2"]query which is recive value from text_9.
I try create [/size][size="2"]query [/size][size="2"]message in VBscript -> OnProcesData->Value = Format.Objects(text_9).Value
And i recive error canot find object "12345678"
I try give global name odczyt and make that [/size][size="2"]Value = Format.NamedSubStrings("odczyt").Value
and when i click test data was recived from file and all is ok but if i click print script ask me for data...
[/size][size="1"][size="1"]
labelpak.com.pl/materialy/W200229800(2).btw
[/size][/size]0 -
Legacy Poster
★ BarTender Hero ★
Topic to close now all is working. 0
Please sign in to leave a comment.
Comments
4 comments