Jumat, 24 September 2010

Replace Text using VB6

How to Replace Text using VB6. This small example on how to use the "Replace" function in Visual Basic 6.0. Originally this code used the Mid and Instr string functions, but since VB 6.0 you can simply use "Replace".


Dim text As String
text = "text text text, all you write is text"
text = Replace(text, "text", "pizza")
MsgBox text

Insert this code to your button
Text1.text = RemoveSpaces(Text1)

Related Post :



0 comments:

R