Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I assign an image's picture value from a table?
Message
From
21/11/2006 11:07:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/11/2006 02:38:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01171337
Message ID:
01171457
Views:
7
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform