loadpicture

loadpicture

Post by YmFiYWN » Wed, 18 Jan 2006 05:46:03


HI ,Cheers Carsten
for example,why the
statement:thisform.image1.picture=loadpicture("c:\a.bmp") is not true?
please correct this example and display many examples.
thanks a lot.
 
 
 

loadpicture

Post by Dan Freema » Wed, 18 Jan 2006 06:21:30

The image.picture property expects a filename, not an image object.

Just set thisform.image1.picture="c:\a.bmp"

You're working too hard! <g>

Dan

 
 
 

loadpicture

Post by YmFiYWN » Thu, 19 Jan 2006 17:23:01

HI,
your answer is right.
for example ,i have one command button object and one image object on a form
and i wrote :thisform.image1.picture=loadpicture("c:\a.bmp") and event is
click on a command button.
at run time,the picture is not on image object.
 
 
 

loadpicture

Post by Edgar Orti » Sat, 21 Jan 2006 10:18:04

Hi,

In VFP8 SP2 works :

ThisForm.Image_01.Picture = "C:\a.bmp"
ThisForm.Refresh



"baback" < XXXX@XXXXX.COM > escribien el mensaje
>> HI, >> your answer is right. >> for example ,i have one command button object and one image object on a >> form >> and i wrote :thisform.image1.picture=loadpicture("c:\a.bmp") and event is >> click on a command button. >> at run time,the picture is not on image object. >>
 
 
 

loadpicture

Post by Olaf Dosch » Sat, 21 Jan 2006 19:07:16

> and i wrote :thisform.image1.picture=loadpicture("c:\a.bmp")

And again you use loadpicture(). Why? In vfp you set a picture
property to the (full) path of the picture. No more, no less.

And if you have vfp9 you have the new PictureVal-Property.
You can set that to STRTOFILE(cPathToAPicFile) or to
a Blob-Field (not recommended). Several picture types are
supported. But again you don't use loadpicture()...

Bye, Olaf.