Home > Archive > FoxPro Help and Support > January 2006 > LOADPICTURE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author LOADPICTURE
baback

2006-01-18, 3:24 am

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.

Edgar Ortiz

2006-01-19, 8:25 pm

Hi,

In VFP8 SP2 works :

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



"baback" <baback@discussions.microsoft.com> escribió en el mensaje
news:3F7953BA-C987-45A9-ABF8- EAD5BB83C90B@microso
ft.com...
> 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.
>



Olaf Doschke

2006-01-20, 7:24 am

> 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(cPathToAPi
cFile) or to
a Blob-Field (not recommended). Several picture types are
supported. But again you don't use loadpicture()...

Bye, Olaf.


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com