Sha256: b11a588582f1e3b7686fb6ffb12ecb8effe5f5665514b4d9c2430ecad6fa1a76

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 Bytes

Contents

 # this code is to change the contact name
 def changenamedata
   oldName =  $addressfiles_directory + "/" + @a_viewnamedata +  ".nam"
   if ! @a_changenamedata.empty? 
    
     newName =  $addressfiles_directory + "/" + @a_changenamedata + ".nam"
     File.rename(oldName, newName)
     oldphotoName =  $addressfiles_directory + "/" + @a_viewnamedata + ".jpg"
     newphotoName =  $addressfiles_directory + "/" + @a_changenamedata + ".jpg"
     if  File.exist?(oldphotoName)
       File.rename(oldphotoName, newphotoName)
     end
   end    
  end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rwdaddresses-0.94 code/superant.com.rwdaddresses/renamecontact.rb
rwdaddresses-0.97 code/superant.com.rwdaddresses/renamecontact.rb
rwdaddresses-1.01 code/superant.com.rwdaddresses/renamecontact.rb
rwdaddresses-0.95 code/superant.com.rwdaddresses/renamecontact.rb
rwdaddresses-0.98 code/superant.com.rwdaddresses/renamecontact.rb
rwdaddresses-0.93 code/gl3addresses/renamecontact.rb
rwdaddresses-0.92 code/gl3addresses/renamecontact.rb
rwdaddresses-0.99 code/superant.com.rwdaddresses/renamecontact.rb