Storing string with variable as app setting

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
 
P

Patrice

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top