Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Image is not refreshing when I run it as standalone exe.
Message
From
21/02/2001 15:47:57
 
 
To
21/02/2001 11:44:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00478020
Message ID:
00478141
Views:
24
>I've got image(jpeg) saved in Memo field (APPEND MEMO FROM FILE ...)
>and on my form is Image control which should show this image. Everytime I
>move the poniter in database do this operations
>
>1. Set the PICTURE property of image to blank.
>2. Copy memo to file (temp.jpg) (SET SAFE is OFF)
>3. Set the PICTURE property of image to "temp.jpg".
>4. Refresh the form
>
>It's ok only inside Visual Foxpro Environment.
>When I build an EXEfile, the picture remains same when i move through the table.
>
>Thanks for any idea.
>
>I am sorry, my English is very poor.
>
>Schwabik

VFP caches images to improve performance. Look at the help for CLEAR RESOURCES:
1. Set Picture property to blank.
2. (optional) Delete TEMP.JPG
3. CLEAR RESOURCES TEMP.JPG
4. Copy memo to file (temp.jpg) (SET SAFE is OFF)
5. Set the PICTURE property of image to "temp.jpg".
6. Refresh the form
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform