locked
Data Extension, FilePlus.GetNumberOfLines RRS feed

  • Question

  • I'm using Data extension 1.0.300 and tried using the FilePlus.Getnumberoflines command, I reference a text file but it keeps returning 1. I tried it with a few different text files with many lines of text but it still keeps returning 1.

    Path = Program.Directory

      NoofLines = FilePlus.GetNumberOfLines (Path+"\Items List.txt")
      TextWindow.Write (NoofLines)

    Am I doing something wrong or maybe Oskariok can check it out when you have time.

    Thanks.

    Wednesday, March 21, 2012 6:24 PM

Answers

  • Minor typo in code. Changed one value to true and function is working.
    • Marked as answer by SFC-P33A Friday, March 23, 2012 4:04 PM
    Friday, March 23, 2012 11:41 AM

All replies

  • Minor typo in code. Changed one value to true and function is working.
    • Marked as answer by SFC-P33A Friday, March 23, 2012 4:04 PM
    Friday, March 23, 2012 11:41 AM
  • Thank you Oskariok,

    Will it be on your next up-dated version?

    Friday, March 23, 2012 4:06 PM