Been searching forums, in vain so far, for solution to this simple problem:
I want to delete last part of a String e.g. the word "Delete" so it only prints "Del".
However, since the String is a user input I do not know the lenght of it so I cannot use: Left(Str, Len).
A simple coding would hopefully be:
Suggestions?
I want to delete last part of a String e.g. the word "Delete" so it only prints "Del".
However, since the String is a user input I do not know the lenght of it so I cannot use: Left(Str, Len).
A simple coding would hopefully be:
Code:
Dim Word, Result as String
Word = Text1.Text
'Here goes the code that deletes, say, last 4 letters of Word.
Text2.Text = Result
Suggestions?