View Single Post
11/24/15, 07:34 PM   #1
cyxui
AddOn Author - Click to view addons
Join Date: Nov 2015
Posts: 62
upgrade saved variable

I wonder if it is possible to upgrade saved variable. For example I had a version 1 savedvar, then later I decide to make some changes and the newer one is version 2. I want to be able to retrieve the version 1 var, update it and save it as version 2. In the above scenario if I call ZO_SavedVars:NewAccountWide with version = 2 directly it will wipe the version 1 var. If I call ZO_SavedVars:NewAccountWide with version = 1 then the version 2 vars will be wiped. Any one got a good way to solve this?
  Reply With Quote