File Reading Problem

Discussion in 'Tally Developer' started by sivam, May 22, 2014.

    
  1. sivam

    sivam Active Member


    Dear Experts,
    I got error at reading time(line number 130). Please give me a solution.

    [Function:ReadFile]
    Variable : ReportText

    101 : Set : ReportText : ""
    110 : OPEN FILE : $(AppINIConfig, "AppINIConfig").ExportPath+"\BalanceSheet.htm" : Text : Read
    120 : While : NOT $$FileIsEOF
    130 : Set : ReportText : ##ReportText+$$FileRead
    131 : End While
    140 : CLOSE FILE
    150 : WALK COLLECTION : UpdateDB
    160 : Msg Box : After : "After Walk Collection"
    170 : END WALK
     


  2. sivam

    sivam Active Member


    I got Error and rectified.

    [Function:ReadFile]
    Variable : ReportText ;;: String

    10 : OPEN FILE : $(AppINIConfig, "AppINIConfig").ExportPath+"\BalanceSheet.txt": Text : Read
    20 : WHILE : (TRUE)
    31 : Set : ReportText : ##ReportText+$$FileRead
    40 : IF : $$FileIsEOF
    50 : BREAK
    60 : END IF
    70 : END WHILE
    80 : CLOSE FILE
    90 : WALK COLLECTION : UpdateDB
    110 : END WALK
     


Share This Page