Results 1 to 11 of 11

Thread: Add text to text file depending on what in list box [solved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Utah
    Posts
    397

    Add text to text file depending on what in list box [solved]

    Im tring to design a very easy to use interface for one of my programs, but ive ran into one slight problem. ill try to explain:

    I have 1 drop down list and a number only text box next to each other, when the user selects a item in the drop down list and types in a number in the text box and presses next, it creates the string "selected_item (number_typed)" but without quotes in a list box. Now when the user pressed create, i want it to create the following code in a text file (one of these below for each item in the listbox):

    class selected_item_from_dropdown_list
    {
    Count = number_in_textbox;
    };

    I know how to write to text files, i just need to know how to write to a text file depending what is in a listbox.

    please tell me if i need to explain any further.
    Last edited by Narfy; Jan 18th, 2004 at 12:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width