Microsoft
Software
Hardware
Network
Question : Check ik file exist
Dear experts,
I have this to load and save the 3 listviews to file.
procedure TMainForm.FormClose(Sender
: TObject; var Action: TCloseAction);
begin
SaveListViewToFile(lstvGlu
cose, 'Glucose.sav');
SaveListViewToFile(lstvBol
us, 'Bolus.sav');
SaveListViewToFile(lstvFoo
dDB, 'FoodDB.sav');
end;
(*------------------------
----------
----------
-------*)
procedure TMainForm.FormCreate(Sende
r: TObject);
begin
LoadListViewToFile(lstvGlu
cose, 'Glucose.sav');
LoadListViewToFile(lstvBol
us, 'Bolus.sav');
LoadListViewToFile(lstvFoo
dDB, 'FoodDB.sav');
end;
But when I start my application the first time the files doesn't exits yet.
so, I get 3 times a error message. How can I prevent this.
That the programm first look if the fileexist otherwist create it.
P
Answer : Check ik file exist
Founded solution is very creative, but by default the files will be saved in (or loaded from) applications folder therefore
ExtractFilePath(Applicatio
n.ExeName)
is unnecessary.
Random Solutions
Google Contacts and iPhone
Require authentication for network access ASA.
Back to back ISA/TMG 2010's result in Network Routing Issue
Maibox enabling 2008 Active Directory Users for Exchange 2010
How do I create an oval rectangular box with two colors as borders as shown in the attachment.
what is office communication server
Sharing contacts with Outlook BCM 2010
Best VPN firewalls
Anyone use proxifier? Can't get it to work with firefox...
Exchange 2007 Active/Active/Passive configuration