Recent

Author Topic: [SOLVED] LAMW : how to save setting  (Read 8124 times)

jluixjurado

  • New Member
  • *
  • Posts: 21
Re: [SOLVED] LAMW : how to save setting
« Reply #15 on: September 21, 2022, 03:03:59 pm »
Hi!

As stated before by neuro, It seems that preferences are not saved when tried in OnClose nor in OnCloseQuery but they're saved if you put them in OnActivityPause or in OnActivityStop. Even there I've got no luck when trying something like preferences.SetStringData('IdMovil',etIdMovil.Text); , (perhaps because etIdMovil doesn't exists anymore when those methods are called) The only way I've found so far for that is updating that preference in OnChanged for etIdMovil component, but that, in my opinion, is not the clearest way to do that.

 

TinyPortal © 2005-2018