Sha256: 57974eb9fb89ad0bf813bb6dfd3dae718428beb641840157cbce02367e7df0e0

Contents?: true

Size: 650 Bytes

Versions: 5

Compression:

Stored size: 650 Bytes

Contents

   # this method views an existing address record
  def deletecontactrecord
 
    require 'fileutils'
  
      if @a_viewnamedata
      $currentnametext =  @a_viewnamedata
      end
              
     fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
     $stderr.print fileName

    begin # exception trapped block

     File.delete(fileName)
     fileNamephoto = $addressfiles_directory + "/" + $currentnametext + ".png"
     if  File.exist?(fileNamephoto)
       File.delete(fileNamephoto)
     end
     rescue SystemCallError, StandardError
         $stderr.print "system call error: " + $!
    end # exception rescue

  end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rwdaddresses-0.9 code/gl3addresses/gm3deletecontactrecord.rb
rwdaddresses-0.91 code/gl3addresses/gm3deletecontactrecord.rb
rwdschedule-0.5 code/gg0schedules/gm3deletecontactrecord.rb
rwdschedule-0.8 code/gg0schedules/gm3deletecontactrecord.rb
rwdschedule-0.6 code/gg0schedules/gm3deletecontactrecord.rb