Now lets look at where the images are stored (what folder in relation to the stack):
Code: Select all
put the effective filename of this stack into tPath
Code: Select all
global gPath
put the effective filename of this stack into gPath --lets make it a global
put gPath & "/images/" into gPath
Code: Select all
set the filename of image "imageobjectName" to gPath & item 1 of line trial of fld "doglist"-- hmm in preopencard you say line a
If you open the inspector for the image object what is it's name? Not the name of what is inside it.
The first image will always work because it's how you saved the file.
Simon