I have following code,
My.Settings.h301 = TextBox301.Text
My.Settings.h302 = TextBox302.Text
My.Settings.h303 = TextBox303.Text
My.Settings.h304 = TextBox304.Text
My.Settings.h305 = TextBox305.Text
I want to convert above code like following;
For i = 301 To 305 Step 1
My.Settings.h & i = TextBox & i.Text
Next
So, please provide me correct for next loop code. Thank you.
My.Settings(h & i).TextBox- and your application will stop working :) Use right tool for the job -Dictionarywith shared key, where settings can be retrieved for correspondent textbox by the key