Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I assign an image's picture value from a table?
Message
De
21/11/2006 11:07:12
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/11/2006 02:38:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01171337
Message ID:
01171457
Vues:
8
>>I'm using VFP 6.0. I have a table that stores a key and the location of the picture.
>
>You can add this code to the form's refresh
>if !empty(yourtable.yourfield)
>  image1.picture=youtable.yourfield
>  image1.visible=.T.
>else
>  image1.visible=.F.
>endif
I've added a method called (surprised?) "refresh" to the image object itself, and guess what - it gets called on every refresh of the parent. So this code could as well go there, with "image." replaced with "this.".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform