Load the text file into the textbox depending on which item is selected

  • Thread starter Thread starter Frasski
  • Start date Start date
F

Frasski

Guest
Hi,

I'm working on one of my programs and I've come across a problem I cannot figure out. So basically, you can download scripts in my program to it's directory and then the listbox will automatically list the items from the scripts pack. Now comes the next part, loading the text files into the textbox. I can just go ahead and make an if statement for every one of these scripts but that would be very time consuming and a really bad way of doing it. So my question is: How can I make it so that, depending on the item selected in the listbox, it would load the appropriate text file into the textbox without making a ton of if statements for each and every one of them? Thanks :)

Continue reading...
 
Back
Top