• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

Visual Basic .NET Pros Question (Stupid Question)

Status
Not open for further replies.

Bildocube

Member
Hello GAF programming people.

I am trying to figure out a way to do the reverse of concatenation with a string. Let's say we have someone who enters a line such as this "Hello." I want a button on here that will essentially act just like the delete key, so when I hit the button instead of "Hello" there is only "Hell." IE reverse concatenating (no I don't know the name of it.)

Anyone know simple code that will do that?
 
Dim str As String
str.Remove(str.Length - 1, 1)

tip: You can figure out the solution to a lot of problems in .Net by using the dot operator and looking at the sub/function list. The list even pops up a tooltip with a description of what the function does and all its overloads.
 
Status
Not open for further replies.
Top Bottom