View Full Version : Another brain dead moment...
Bruce
07-31-2006, 08:47 AM
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.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_result = Table.Concat(sec_names_result, "\r\n")
Paragraph.SetText("Paragraph2", sec_result);
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.
:yes :yes :yes
You sure your ini file is well formed and on the desktop cause its not you script that is the problem.
Bruce
07-31-2006, 11:06 AM
Thx TJS, it must be something else :rolleyes
odeen_c
07-31-2006, 12:05 PM
isn't there a space between "i" and "ni" at the end of the first line of the code?
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.
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.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
Bruce
07-31-2006, 12:51 PM
The problem was that, I had put the code in the project, on startup. Nut-in was there to show the code! :wow (thx Tigg):yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.