Storing string with variable as app setting

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

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

"MyTable.MyField = (" & 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.MyField = (" & 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
 
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...
 
Back
Top