Storing string with variable as app setting

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Storing string with variable as app setting

    Hi

    I have a string expression which is evaluated based on value of a variable
    like this;

    "MyTable.MyFiel d = (" & MyVar.ToString & ")"

    I need to save this expression as app setting so I can change it without
    having to recompile and reinstall the app every time. How do I do this?
    Creating and app setting say X as "MyTable.MyFiel d = (" & MyVar.ToString &
    ")" does not work as My.Settings.X brings the whole expression as a literal
    and does not evaluate the value of variable MyVar.

    Thanks

    Regards


  • Patrice

    #2
    Re: Storing string with variable as app setting

    IMO the first step would be to explain what you are trying to do to
    see if the evaluation phase is really needed. If yes, it's quite
    uneasay but AFAIK doable (for example using the j# library) thought it
    may also perhaps work or not depending on your site hosting security).

    So the first step would be to see if you can avoid this...

    Comment

    Working...