-- Get the selected items
tSelected = ComboBox.GetSelected("ComboBox1");
if tSelected then
-- There is an item selected, get the data!
sFileToOpen = ComboBox.GetItemData("ComboBox1", tSelected);
File.Open(sFileToOpen, "", SW_SHOWNORMAL);
--set info
nSize = File.GetSize (sFileToOpen);
tFileAtt = File.GetAttributes (sFileToOpen);
sFileCreated = tFileAtt.CreationDate;
sFileLastAccess = tFileAtt.AccessDate;
sFileLastWritten = tFileAtt.WriteDate;
Paragraph.SetEnabled("Para_FileProps", true);
Paragraph.SetText("Para_FileProps", "File Path : "..sFileToOpen.."\r\nFile Size : "..nSize.." | Created : "..sFileCreated.."\r\nLast Access : "..sFileLastAccess.." | Last Written : "..sFileLastWritten);
Paragraph.SetEnabled("Paragraph2", true);
Button.SetEnabled("Button_DeleteItem", true);
Label.SetEnabled("Label_DeleteNote", true);
else
-- Display an error message
Dialog.Message("Error", "There is no item selected.");
end
---------------------------------------------------------------------
Question: How i can add the info on the red circle off the photo can be done?
Paragraph.SetText("Para_FileProps", "File Path : "..sFileToOpen.."\r\nFile Size : "..nSize.." | Created : "..sFileCreated.."\r\nLast Access : "..sFileLastAccess.." | Last Written : "..sFileLastWritten);
I want to add the comments off a file so that way i can modify the comments of the file so the comments will be show at the Paragraph2
Thanks U All Indigos
tSelected = ComboBox.GetSelected("ComboBox1");
if tSelected then
-- There is an item selected, get the data!
sFileToOpen = ComboBox.GetItemData("ComboBox1", tSelected);
File.Open(sFileToOpen, "", SW_SHOWNORMAL);
--set info
nSize = File.GetSize (sFileToOpen);
tFileAtt = File.GetAttributes (sFileToOpen);
sFileCreated = tFileAtt.CreationDate;
sFileLastAccess = tFileAtt.AccessDate;
sFileLastWritten = tFileAtt.WriteDate;
Paragraph.SetEnabled("Para_FileProps", true);
Paragraph.SetText("Para_FileProps", "File Path : "..sFileToOpen.."\r\nFile Size : "..nSize.." | Created : "..sFileCreated.."\r\nLast Access : "..sFileLastAccess.." | Last Written : "..sFileLastWritten);
Paragraph.SetEnabled("Paragraph2", true);
Button.SetEnabled("Button_DeleteItem", true);
Label.SetEnabled("Label_DeleteNote", true);
else
-- Display an error message
Dialog.Message("Error", "There is no item selected.");
end
---------------------------------------------------------------------
Question: How i can add the info on the red circle off the photo can be done?
Paragraph.SetText("Para_FileProps", "File Path : "..sFileToOpen.."\r\nFile Size : "..nSize.." | Created : "..sFileCreated.."\r\nLast Access : "..sFileLastAccess.." | Last Written : "..sFileLastWritten);
I want to add the comments off a file so that way i can modify the comments of the file so the comments will be show at the Paragraph2
Thanks U All Indigos