![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
Fruit Machine
Hi,
I keep getting an undeclared identifier 'filename' error message. Could someone please tell me what to do? if Image1.Picture.filename = Image2.Picture.filename and Image1.Picture.filename = Image3.Picture.filename then edtscore.Text:=inttostr(strtoint(edtscore.text)+3) else if Image1.Picture.filename = Image2.Picture.filename or Image2.Picture.filename = Image3.Picture.filename or Image1.Picture.filename = Image3.Picture.filename then edtscore.Text:=inttostr(strtoint(edtscore.text)+2); |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
I'm guessing the Filename property of the control doesn't exist (which is what the message is telling you). To load a picture from a file, you can use:
Image1.Picture.LoadFromFile('X:\Path\Filename.ext'); |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|