jackdaniels
12-12-2008, 12:23 PM
i am trying to load today's data from ini file not the date!!!
what i have in ini flie is;
[2008-12-11]
MSN.com=http://www.msn.com/
Google=http://www.google.com/
.
.
.
[2008-12-12]
Yahoo=http://www.yahoo.com
Facebook_http://www.facebook.com
.
.
.
[2008-12-13]
.
.
.
ini file load code:
function ReadAndInsertVisited()
Today = System.GetDate(DATE_FMT_ISO)
Visited = INIFile.GetSectionNames("AutoPlay\\Docs\\Visited.ini");
if Visited then
for index, Today in Visited do
Url = INIFile.GetValue("AutoPlay\\Docs\\Visited.ini", Today, "Url");
FavCount = Tree.GetChildCount("Visited_Panel", "1");
FavNodeData = {};
FavNodeData.Text = sections;
FavNodeData.Data = Url;
FavNodeData.Expanded = true;
FavNodeData.NodeIndex = FavCount+1;
FavNodeData.ImageIndex = 8;
FavNodeData.SelectedImageIndex = 8;
Tree.InsertNode("Visited_Panel", (FavCount), FavNodeData);
end
end
end
and what it loads is date;
[2008-12-11]
[2008-12-12]
[2008-12-13]
.
.
.
how can i make it load data of today ???
what i have in ini flie is;
[2008-12-11]
MSN.com=http://www.msn.com/
Google=http://www.google.com/
.
.
.
[2008-12-12]
Yahoo=http://www.yahoo.com
Facebook_http://www.facebook.com
.
.
.
[2008-12-13]
.
.
.
ini file load code:
function ReadAndInsertVisited()
Today = System.GetDate(DATE_FMT_ISO)
Visited = INIFile.GetSectionNames("AutoPlay\\Docs\\Visited.ini");
if Visited then
for index, Today in Visited do
Url = INIFile.GetValue("AutoPlay\\Docs\\Visited.ini", Today, "Url");
FavCount = Tree.GetChildCount("Visited_Panel", "1");
FavNodeData = {};
FavNodeData.Text = sections;
FavNodeData.Data = Url;
FavNodeData.Expanded = true;
FavNodeData.NodeIndex = FavCount+1;
FavNodeData.ImageIndex = 8;
FavNodeData.SelectedImageIndex = 8;
Tree.InsertNode("Visited_Panel", (FavCount), FavNodeData);
end
end
end
and what it loads is date;
[2008-12-11]
[2008-12-12]
[2008-12-13]
.
.
.
how can i make it load data of today ???