Jump to content

James Hellums

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. James Hellums

    Trying to learn Lazarus

    Had to rem the memobox1.lines(loadfromfile) to get the exe. Here's what I have so far. When clicking on open text file, it displays the text file contents. When I click again, I want to add a hyphenated line as a divider. It does that. If the user does not choose a file, a showmessage alerts them that they did not choose a text or multi file. But when i click on open text file, the new one replacing the old one. I need to be able to add up to 150 more text files. I have open and save working for the text and multi files with showmessages. Just can't get the files to append. Thanks, Traum!
  2. James Hellums

    Trying to learn Lazarus

    hey Traum! I added memobox1.lines.loadfromfile(OpenDialog1.FileName); after if OpenDialog1.execute then begin and still got an error! My program will load a text file, but it won't let me append. it always replaces the file. got the program to run, but it still will only accept 1 file. it still replaces the file rather than appending. If I ever figure this out with someone's help, I will never forget it! I have been searching for this solution for 2 months. Guess the default is to replace. So I need to over ride that! But how?
  3. James Hellums

    Trying to learn Lazarus

    Please be kind! Lol. I am trying to learn Lazarus. I am using ver 2.01. I have searched Google for my answer, but it's always about strings to a listfilebox. I just want to know how to ADD text file contents to a memobox. My program lets the user select a txt file and it shows the content. They can open multiple text files and save them all as .mtf files. I just need an example or code to show me. I tried memobox1.add.lines(Openfromfile) with error. Help! Thank you.
×