Shoutbox

Visual Basic help - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Visual Basic help (/showthread.php?tid=35440)

Visual Basic help by DJeX on 12-10-2004 at 03:54 AM

Say if I have a text box with "C:\test.exe" in the text box. How would I remove just the " " with a click of a button?


RE: Visual Basic help by Mike on 12-10-2004 at 05:56 AM

code:
Text1.Text = Mid$(Text1.Text, 1, Len(Text1.Text) - 1)
Or:
code:
Text1.Text = Replace$(Text1.Text, """", "")

RE: Visual Basic help by matty on 12-10-2004 at 06:00 AM

Reply the Equivalent Character code for the Quotation Mark is Chr(34) so you can use the following;

code:
Text1.text = Replace(Text1.Text, Chr(34), vbNullString)

RE: Visual Basic help by DJeX on 12-10-2004 at 10:37 PM

Thanks! i'll give it a try