Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Image Frame Problem


Message #1 by "Paul Ansell" <paul.ansell@t...> on Thu, 18 Oct 2001 09:31:34
I am storing path and file names of jpeg and bitmap files in a table 

rather than storing them as OLE objects in the database. In a form I then 

use this path to load the picture to an image frame, which works fine and 

a lot faster than storing the pictures in the db.



I have a problem when navigating through the records though; everything 

works fine until I get to a record that doesn?t have a file path for a 

picture associated with it. When I get to these records that have empty 

file path fields, the picture from the previous record is still displayed 

in the frame, which is incorrect. What I would like to happen is that if 

the user navigates to a record that doesn?t have a filename/path 

associated with it then the frame to be blank.



Can anyone help?



Thanks

Paul 

Message #2 by "Preethi" <preethi@s...> on Thu, 18 Oct 2001 14:39:06 +0600
Are you using

picture1.picture=loadpicture("path & name of the picture")



Then picture1.picture = loadpicture("") may work




  Return to Index