DshWinchester Posted February 5, 2014 Author Share Posted February 5, 2014 For example: TESTINHow do I get the half string : TES?I am willing to prevent spam(same word) and this could helpthanks Link to comment Share on other sites More sharing options...
DshWinchester Posted February 5, 2014 Author Share Posted February 5, 2014 > For example: TESTIN> > > > How do I get the half string : TES?> > > > I just need the function that cuts the word,no need be half> > > > I am willing to prevent spam(same word) and this could help> > > > thankssorry, I did quote istead edit Link to comment Share on other sites More sharing options...
Richy420Rich Posted February 5, 2014 Share Posted February 5, 2014 ```Dim myString As StringmyString = Mid(Trim$(myString), 1, 3)```myString = Your string.first value = Start letter.last value = length of entire string. Link to comment Share on other sites More sharing options...
DshWinchester Posted February 5, 2014 Author Share Posted February 5, 2014 > ```> > Dim myString As String> > myString = Mid(Trim$(myString), 1, 3)> > ```> myString = Your string.> > first value = Start letter.> > last value = length of entire string.thanks a lot Richy :D Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 5, 2014 Share Posted February 5, 2014 Richy posted an example of a static version of what you're asking for```Dim MyString As StringMyString = Mid(, 1, Len() / 2) ```This should be what you're looking for. hope this helpsSincerely,Growlith1223 Link to comment Share on other sites More sharing options...
Slasheree Posted February 5, 2014 Share Posted February 5, 2014 or just```MyString = Left$(, Len() / 2) ``` Link to comment Share on other sites More sharing options...
DshWinchester Posted February 5, 2014 Author Share Posted February 5, 2014 > ,…,<>" data-cid="918030" data-time="1391633891">> > > > or just> > > > ```> > MyString = Left$(, Len() / 2) > ```great,thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now