EO CLASSIC- How get the first half of a string?

For example: TESTIN

How do I get the half string : TES?

I am willing to prevent spam(same word) and this could help

thanks

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

thanks

sorry, I did quote istead edit


Dim myString As String

myString = Mid(Trim$(myString), 1, 3)

myString = Your string.

first value = Start letter.

last value = length of entire string.


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 😄

Richy posted an example of a static version of what you’re asking for

Dim MyString As String
MyString = Mid(<variablename>, 1, Len(<variablename>) / 2)</variablename></variablename> 

This should be what you’re looking for. hope this helps

Sincerely,

Growlith1223

or just


MyString = Left$(<variablename>, Len(<variablename>) / 2)</variablename></variablename> 

,…,<>" data-cid=“918030” data-time=“1391633891”>

or just


MyString = Left$(<variablename>, Len(<variablename>) / 2)</variablename></variablename> 

great,thanks

Log in to reply