Deze pagina is niet van toepassing voor de Aruba versie.
Dit is normaal gedrag bij Visual FoxPro.
Ik denk dat u dit kunt omzeilen via een clear resources, waarvan u hier de doc vindt.
Specifies the name of a cached bitmap, picture, font, cursor, or icon file to be cleared from memory. If no file name is specified, all bitmap, picture, font, cursor and icon files are removed from memory. When Visual FoxPro displays a bitmap, picture, cursor, icon, or font resource, the resource is cached to optimized performance. If a resource of the same name is used (for example, a different bitmap with the same name as one already cached), Visual FoxPro does not reload the resource. Clearing a resource file is therefore particularly useful for removing a graphic image from memory and forcing Visual FoxPro to reload an image of the same name from disk. For example, a report might display graphic images from a database, all of which are named TEMP; however, because they all have the same name, Visual FoxPro will not reload each new graphic unless the existing one has been cleared from memory using the CLEAR RESOURCES command. If a particular resource is still in use by Visual FoxPro, then it may not able to be cleared using the CLEAR RESOURCES command.
Het eenvoudigste zou zijn om een bestand CLEAR_RESOURCES.PRG te creëren (te compileren in FXP) dat deze 2 lijnen bevat:
clear resources
return ''
Vervolgens creëert u in de variabelen van het verslag een variabele CLEAR_RESS met als beginwaarde CLEAR_RESOURCES() en als "value to store" m.CLEAR_RESS. Hierdoor wordt het commando Clear resources slechts eenmaal uitgevoerd bij het openen van het verslag.
Hallo,
Ik voeg een afbeelding die op mijn harde schijf staat, toe aan een verslag via de functie "Picture / Ole Bound" en ik zou willen dat deze afbeelding ook in het verslag verandert zodra er op de harde schijf iets aan veranderd wordt.
Jammer genoeg blijft de oude versie weergegeven zolang men Mercator niet heeft afgesloten en heropgestart.