Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Another brain dead moment...

    Does anyone see anything wrong? I can't get it to show up in my paragraph object. Thank you.

    sec_names_result = INIFile.GetSectionNames(_DesktopFolder.."\\track.i ni");
    if sec_names_result then
    sec_result = Table.Concat(sec_names_result, "\r\n", 1, TABLE_ALL);
    Paragraph.SetText("Paragraph1", sec_result);
    else
    Paragraph.SetText("Paragraph1", "error");
    end

    sec_result = Table.Concat(sec_names_result, "\r\n")

    Paragraph.SetText("Paragraph2", sec_result);

  2. #2
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    I just placed a track.ini with a couple dummy section names on the desktop, created a test project with one Paragraph object, pasted your exact code into "On Preload" and it works perfect.



    You sure your ini file is well formed and on the desktop cause its not you script that is the problem.
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Thx TJS, it must be something else

  4. #4
    Join Date
    Apr 2005
    Location
    Milan
    Posts
    15
    isn't there a space between "i" and "ni" at the end of the first line of the code?

  5. #5
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Ya, it seems that the forum adds spaces (as well as drops formatting) from time to time when you do not use the code tags in your post.

    These were cut-n-paste from the same section in my project.
    Code:
    sec_names_result = INIFile.GetSectionNames(_DesktopFolder.."\\track.ini");
    if sec_names_result then
    	sec_result = Table.Concat(sec_names_result, "\r\n", 1, TABLE_ALL);
    	Paragraph.SetText("Paragraph1", sec_result);
    else
    	Paragraph.SetText("Paragraph1", "error");
    end
    sec_names_result = INIFile.GetSectionNames(_DesktopFolder.."\\track.i ni");
    if sec_names_result then
    sec_result = Table.Concat(sec_names_result, "\r\n", 1, TABLE_ALL);
    Paragraph.SetText("Paragraph1", sec_result);
    else
    Paragraph.SetText("Paragraph1", "error");
    end
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  6. #6
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    The problem was that, I had put the code in the project, on startup. Nut-in was there to show the code! (thx Tigg)

Similar Threads

  1. I refuse to rack my brain on this one...
    By rhosk in forum AutoPlay Media Studio 6.0
    Replies: 29
    Last Post: 01-02-2006, 05:09 PM
  2. Brain not working....again
    By ianhull in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 11-23-2004, 10:45 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