NetTalk Central

Author Topic: Deleting images with record  (Read 3885 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Deleting images with record
« on: September 14, 2012, 08:01:13 AM »
I've been putting off dealing with deleting images associated with a client's record.

I delete the record, but I believe the pointer to the image is a URL type pointer, not a Windows pointer.

1. Do I need to also store the Windows path with the record, or build a routine to convert it to a useful Windows path?

2. My biggest problem is finding an embed point to do the delete before the record and its path info is gone.

Thanks in advance for any ideas.
Mike Grigsby
Credify Systems
Central Oregon, USA

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Deleting images with record
« Reply #1 on: September 15, 2012, 12:42:51 AM »
Hi Mike
I'm not sure if this is answering your question but what I do is save the path to the record to a session variable before deleting the record and then delete the image using the session variable after the record deletion.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Deleting images with record
« Reply #2 on: September 15, 2012, 09:03:31 PM »
Thank you for the suggestion Terry. I seem to always have trouble finding the right embed. I'm either too early or too late in deleting the images, but this might help.
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Deleting images with record
« Reply #3 on: September 16, 2012, 10:35:24 PM »
Hi Mike,

>> I delete the record, but I believe the pointer to the image is a URL type pointer, not a Windows pointer.

It's whatever you stored when image was uploaded, or set, or whatever.

>> 2. My biggest problem is finding an embed point to do the delete before the record and its path info is gone.

ValidateDelete routine in the Form.

cheers
Bruce