Reidar,
Public Navn1 As String = "Per"
I want to change it to another 'text' by entering some text in a textbox
like
navn1 = 'Nils'
and then the line should look like
Public Navn1 As String = "Nils"
How do I do that?
If I would dot this as you ask, than I would use probably something as this
code in the leave or validating event of the textbox
If mytextbox.text = "navn1" then
navn1 = replace.mytextbox.text(navn1 = ',"")
navn1 = replace.mytextbox.text("'","")
end if
However I would never do things like this. It gives only misunderstandings
and not resolved errors.
I hope this helps,
Cor