As of version 5.0, a new clause was added to the CLEAR Command. The clause is called RESOURCES.
For example, lets say I have an image on a form that points to a specific BMP file that has changed. If I run the form, I could use this code in the command window to demonstrate how things work.
oldpict = form.image1.picture
form.image1.picture = "" && resource cannot be in use
Clear Resources oldpict
form.image1.picture = oldpict && you should see the changed bitmap
>If I display a .bmp in FoxPro and then change it (rescan w/ different settings) and display it again - FoxPro keeps the old image in memory and will not show the new file.
>
>Short of using new names or restarting FoxPro is there away to flush out the old and redisplay the new image?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only