
October 28th, 2012, 11:34 PM
|
|
Contributing User
|
|
Join Date: Jun 2008
Posts: 257
 
Time spent in forums: 3 Days 9 m 16 sec
Reputation Power: 6
|
|
Without posting the code that causes the error, at best we can only guess as to what is happening.
Given that, my guess is that you are not "Executing" the dialog correctly.
Code:
if OpenPictureDialog.Execute then
begin
//the file selected will be in
//OpenPictureDialgo.FileName
//only do the "loadfromfile" if the dialog is executed
//otherwise the user clicked cancel
end;
|