October 27, 200718 yr Basically I have some pictures in a folder, which is in the folder with the rest of the programs files. \PSR(I have all the files for the program here)\Pictures\rock up.bmp " "\paper up.bmp " "\scissors up.bmp " " \rock down.bmp etc I have If paperradiobtn.Checked = True then P_Choice := 1; (here I want to load a picture in the image called playerpic) I have been searching for a while and I can't figure out how to do this. All I found was playerpic.Picture.LoadFromFile(Pictures\paper up.bmp); Which doesn't compile, and I don't know if it's the right method anyway.
October 27, 200718 yr Are you putting the: Pictures\paper up.bmp part of playerpic.Picture.LoadFromFile(Pictures\paper up.bmp); in quotes? It should be: playerpic.Picture.LoadFromFile('Pictures\paper up.bmp'); { ... or (if the first doesn't work?)... } playerpic.Picture.LoadFromFile("Pictures\paper up.bmp"); I don't remember much Pascal, but I think that'll fix your problem.
October 27, 200718 yr Author playerpic.Picture.LoadFromFile('Pictures\paper up.bmp'); Worked. I'm almost certain that was one of the first things I tried :-k Anyway thanks for your help. :)
Create an account or sign in to comment