Posted by Joey p12386 on April 06, 2005
In Reply to: Re: filename in fruit machine posted by cmarques on April 06, 2005
Right i'm back at home now i can check in Delphi.
The problem is that TImage.Picture does not have a FileName property. So what you need to do it setup three temporary variables to hold the file names.
var Img1FileName, Img2FileName, Img3FileName: string;
add this in the interface section of your program then change the Image.Picture.File name to the relative variable.
You will just have to use the LoadFromFile() procedure of TImage.Picture.
Post back if you didnt get that. I kinda was just blabling ;)
Related Articles and Replies