In my application I use the Imageviewer ocx control to (amongst other things) allow additional meta data to be written to a jpg file.
The control requires a temp file to be written with the new Exif data included.
My problem is that the original image file is used in a field in a grid that I want to keep open ( to allow a succession of images to be changed if required)
So with my code where mycopyfilename is a full path to the image
<code>
If File(mycopyfilename)
mycopysaver = juststem(mycopyfilename)+'.bak'
CopyFile (mycopyfilename , mycopysaver , 1)
delfile = Justfname(mycopyfilename)
{neither of these commands delete the file}
Delete File (delfile)
Delete File &delfile
{so I can't do }
CopyFile (myorigfilename , mycopycopy, 1) && using the API
&& Testing
If File(myorigfilename)
cMessageText = 'Overwrite success!'
Messagebox(cMessageText, 0 + 48 ,cMsgTitle)
Else
cMessageText = 'Overwrite failed!'
Messagebox(cMessageText, 0 + 48 ,cMsgTitle)
Endif
Endif
</code>
Has anybody any suggestions?
Thanks
Coldan
The control requires a temp file to be written with the new Exif data included.
My problem is that the original image file is used in a field in a grid that I want to keep open ( to allow a succession of images to be changed if required)
So with my code where mycopyfilename is a full path to the image
<code>
If File(mycopyfilename)
mycopysaver = juststem(mycopyfilename)+'.bak'
CopyFile (mycopyfilename , mycopysaver , 1)
delfile = Justfname(mycopyfilename)
{neither of these commands delete the file}
Delete File (delfile)
Delete File &delfile
{so I can't do }
CopyFile (myorigfilename , mycopycopy, 1) && using the API
&& Testing
If File(myorigfilename)
cMessageText = 'Overwrite success!'
Messagebox(cMessageText, 0 + 48 ,cMsgTitle)
Else
cMessageText = 'Overwrite failed!'
Messagebox(cMessageText, 0 + 48 ,cMsgTitle)
Endif
Endif
</code>
Has anybody any suggestions?
Thanks
Coldan