Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture
Message
De
15/04/2004 02:31:18
 
 
À
15/04/2004 02:08:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00894721
Message ID:
00895034
Vues:
23
>hello,
>thank you,
>
>this is my code
>
>I store a picture in myform(pic)
>
>select 1
>use pic
>APPEND GENERAL pic FROM d:\manylast\newlamp.bmp(no problem)
>
>.......
>
>But when I write this code
>select 1
>use pic
>locate for no=thisform.text1.value
>thisform.IMAGE1.value= general .from . pic.pic
>
>(error message operator is invalid for a general field)at query form.

Mohammed.

A better solution would be to store the filenames of the various images you have in a plain char field in your file. Do not store the image itself. Then find the file you want using your LOCATE and then simply set the flename of the image to the image picture property. eg:
select 1
use pic
*APPEND GENERAL pic FROM d:\manylast\newlamp.bmp   &&  NO use this
replace pic_file with "d:\manylast\newlamp.bmp"    &&  use this instead

.......
.......

select 1
use pic
locate for no=thisform.text1.value
thisform.IMAGE1.picture = pic.pic_file   && this sets the filename OK!
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform