Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    22

    Star Text to File Listbox Help

    Hello, I am Projext text to file open and read end.
    ADD button Click
    Code:
    Programlar = Input.GetText("Input1");
    TextFile.WriteFromString("AutoPlay\\Txt\\ProgramListesi.txt","\r"..Programlar, true);
    Code:
    ListBox.DeleteItem("ListBox1", -1);
    -- A while loop
    testvar = 0;
    while (testvar < 100) do
    	-- Do something here
    	testvar = testvar + 1;
    	ch_name = TextFile.ReadToTable("AutoPlay\\TXT\\ProgramListesi.txt");
    	ListBox.AddItem("ListBox1", ch_name[testvar]);
    	
    end
    Code error picture...

    Helpp meeee
    Attached Images

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    On your button try something like -

    Code:
    Programlar = Input.GetText("Input1");
    TextFile.WriteFromString("AutoPlay\\Docs\\Text\\ProgramListesi.txt", "\r\n"..Programlar, true);
    
    ListBox.DeleteItem("ListBox1", -1);
    Input.SetText("Input1", "");
    
    
    ch_name = TextFile.ReadToTable("AutoPlay\\Docs\\Text\\ProgramListesi.txt");
    	if ch_name then
    	count = Table.Count(ch_name);	
    	for testvar = 1,count do	
    		ListBox.AddItem("ListBox1", ch_name[testvar]);
    	end
    end

  3. #3
    Join Date
    Apr 2007
    Posts
    22
    Quote Originally Posted by longedge View Post
    On your button try something like -

    Code:
    Programlar = Input.GetText("Input1");
    TextFile.WriteFromString("AutoPlay\\Docs\\Text\\ProgramListesi.txt", "\r\n"..Programlar, true);
    
    ListBox.DeleteItem("ListBox1", -1);
    Input.SetText("Input1", "");
    
    
    ch_name = TextFile.ReadToTable("AutoPlay\\Docs\\Text\\ProgramListesi.txt");
    	if ch_name then
    	count = Table.Count(ch_name);	
    	for testvar = 1,count do	
    		ListBox.AddItem("ListBox1", ch_name[testvar]);
    	end
    end
    Thanks And You

Similar Threads

  1. help for modify and save line in file text
    By kangou in forum AutoPlay Media Studio 7.5
    Replies: 4
    Last Post: 10-21-2008, 12:48 AM
  2. ListBox to Text File
    By AudioSam in forum AutoPlay Media Studio 6.0
    Replies: 13
    Last Post: 01-15-2007, 06:52 AM
  3. New Setup Factory 7.0 (v 7.0.2.0) Available
    By Darryl in forum Setup Factory 7.0
    Replies: 9
    Last Post: 03-06-2005, 01:57 PM
  4. Example: Loading Paragraph Text Using a Timer
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 7
    Last Post: 11-25-2004, 05:10 PM
  5. problems parsing text file...
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 02-02-2004, 01:16 PM

Posting Permissions

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