View Full Version : Image reference


Robert Lee
02-11-2005, 08:39 AM
Is there a more efficient way to reference images ? I have a simple form that works fine, but I need the name of the JPG file when exporting, if I export the table as is, the image field will display #NAME?

I would prefer to have a button next to the picture field to browse for the picture, with another field actully holding the name of the JPG, then using this name to fill the picture field instead.

Thanks for any help .

Romy Huang
02-11-2005, 08:54 AM
you have two field,one is charater to fill file name, another is image file reference. When the charater field is change, you can update image file reference field to see the image.

Robert Lee
02-11-2005, 09:01 AM
Thats what I tried to do now, but not sure how to update the reference file, plus some records may not contain any pictures at all.

Thanks for the help

Romy Huang
02-11-2005, 09:14 AM
for example, user enter "c:\test\test.jpg" in the character field(f1), on f1's Onchange event, put image file reference field(f2) value to f1's value:

if file.exist(topparent:f1.text) then
end if

Romy Huang
02-11-2005, 09:16 AM
maybe f1's ondepart event is better.