Skip to main content

Search

Search

Read From Texf File

Comments

4 comments

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

    labelpak.com.pl/materialy/W200229800(1).btw
    0
  • Avatar
    Shotaro Ito
    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
    [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
    Topic to close now all is working.
    0

Please sign in to leave a comment.