I have the following two scripts to save and restore email settings in the registry. We use this whenever we install the app on a new machine or install a new version of Alpha Five.
For some reason it doesn't work any longer. Is there something glaringly wrong with this logic?
Thanks
Save Current Email Settings
Code:
dim user_mail as P
dim temp_mail as C
user_mail.foo = ""
temp_mail = file.to_property(a5.Get_Path()+chr(92)+"mail.txt",user_mail)
dim user_rmail as P
user_rmail.dummy = ""
property_from_string(user_rmail, temp_mail)
registry.save_settings("init\email",user_rmail)
Restore Email Settings from File
Code:
user_data.mail = ""
:registry.load_settings("init\email",user_data)
file.From_property(a5.Get_Path()+chr(92)+"mail.txt",user_data)
Bookmarks