Insert Into A String From Textbox
Posted on 2009-04-05
Here is my little problem. I am tying to figure out a way so that when someone puts a certing symbol in a textbox upon pressing a button that symbol turns into a string and is inserted into the string they already entered.
If I write "Hello (%) How are you" I would like the (%) to be converted into "Hello GetName(Player) How are you" when it is outputted into a text file.
(%) = GetName(Player)
This is the part of my code where it reads the textbox:
sw.WriteLine(vbTab & vbTab & vbTab & "Say(QuestGiver, " & Chr(34) & txtQuestAccSay.Text & Chr(34) & Chr(41))
sw is my StreamWriter
Sorry is this is a newb question im still learning.