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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement