PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] Save Image Memo to Db File Problem
[WD20] Save Image Memo to Db File Problem
Iniciado por guest, 09,oct. 2015 01:16 - 1 respuesta
Publicado el 09,octubre 2015 - 01:16
I have a settings window where the end user can choose a logo among other things. When the user first selects an image and clicks the save button I use the following code to save the image to the Db. It works.
HLinkMemo(Settings,Logo,IMG_Logo,hMemoImg) HModify(Settings) When the settings window is intializied I display the logo with the code:
IMG_Logo = Settings.Logo This also works. The problem is that if I don't change the image and click save it deletes the image memo from the Db. If I change the image and click save the new image is saved. I could just check to see if the image has changed before calling the top code block, but I feel like this should work. Why is HLinkMemo() deleting my image the second time around?
Publicado el 09,octubre 2015 - 10:34
Hi

Maybe chaeck if it is already there before running the code to modify?


SOmethinsg like this
IF hreadfirst(file,fileid) = false THEN
END