Posted 19 years ago
by Leif Zars
![Avatar](https://secure.gravatar.com/avatar/f675b0cf09065023c5d321a810a0dd06.jpg?s=64&d=identicon&r=g)
i have a VB 2003 file I want to add, remove and update cretin lines in the code. Much like MS Visual Basic does when you working with visible objects during design time.
I want to be able to quickly find and change, add or remove these related lines. For instance just changing depth0 to depth-0 in the 3 locations it is found. I think there is a lot of parsing functions out there, I just don’t know where to start.
Also I would love strings like “5+5” to automatically be formatted to “5 + 5” how would I do that. Also Strings like “end sub” to be changed to “End Sub”.
Let me know
Thanks
Leif
#Region "Managed Variables"
Friend Depth0 as GaryPoolsMain.ScriptToEst.MangVar
Friend Depth1 as GaryPoolsMain.ScriptToEst.MangVar
Friend Depth2 as GaryPoolsMain.ScriptToEst.MangVar
Private Sub InitializeVariables()
Depth0 = New GaryPoolsMain.ScriptToEst.MangVar("Depth0", "Double", MyParent, True)
Depth1 = New GaryPoolsMain.ScriptToEst.MangVar("Depth1", "Double", MyParent, True)
Depth2 = New GaryPoolsMain.ScriptToEst.MangVar("Depth2", "Double", MyParent, True)
End Sub
#End Region
Also I would love strings like “5+5” to automatically be formatted to “5 + 5” how would I do that. Also Strings like “end sub” to be changed to “End Sub”.
Let me know
Thanks
Leif