Read From Texf File S’abonner

0
Avatar
Legacy Poster

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

4 commentaires

0
Avatar
Legacy Poster
Actions pour les commentaires Permalien

I remake script now read but on second line :/
Someone have any idea ??

labelpak.com.pl/materialy/W200229800(1).btw
0
Avatar
Shotaro Ito
Actions pour les commentaires Permalien

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
Avatar
Legacy Poster
Actions pour les commentaires Permalien

[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
Avatar
Legacy Poster
Actions pour les commentaires Permalien

Topic to close now all is working.

Vous devez vous connecter pour laisser un commentaire.