MysticFallout
Technical User
I am trying to make a constant variable so I will not have to constantly re-create the variable throughout my application. The variable I am trying to make utilizes the GetSetting function. I don't understand this type of "Coding" very well, but I am reading up on it as I write this, but so far no idea on how I would do this.
But I am getting an error. "Constant Expression Required". Could someone please advise me on how I could do this?
Thank you in advance!
Code:
private const showPrev as string = GetSetting("Wallpaper", "options", "Allow Preview")
But I am getting an error. "Constant Expression Required". Could someone please advise me on how I could do this?
Thank you in advance!